Class EncodedString

java.lang.Object
org.eolang.jeo.representation.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 Details

    • EncodedString

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

    • decode

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