Class EncodedString


  • public final class EncodedString
    extends Object
    A utility class for decoding URL-encoded strings.

    This class wraps an encoded string and provides functionality to decode it using UTF-8 URL decoding. It handles decoding exceptions internally and throws IllegalStateException if decoding fails.

    Since:
    0.6.0
    • Constructor Detail

      • EncodedString

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

      • decode

        public String decode()
        Decode the string.
        Returns:
        Decoded string.