Class DecodedString


  • public final class DecodedString
    extends Object
    A utility class for encoding strings using URL encoding.

    This class wraps a decoded string and provides functionality to encode it using UTF-8 URL encoding. It handles encoding exceptions internally and throws IllegalStateException if encoding fails.

    Since:
    0.6.0
    • Constructor Detail

      • DecodedString

        public DecodedString​(String decoded)
        Constructor.
        Parameters:
        decoded - The original decoded string to be encoded
    • Method Detail

      • encode

        public String encode()
        Encode the string.
        Returns:
        Encoded string.