Package org.eolang.jeo.representation
Class EncodedString
java.lang.Object
org.eolang.jeo.representation.EncodedString
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
EncodedString
Constructor.- Parameters:
encoded
- The URL-encoded string to be decoded
-
-
Method Details
-
decode
Decode the string.- Returns:
- Decoded string.
-