Package org.eolang.jeo.representation
Class DecodedString
java.lang.Object
org.eolang.jeo.representation.DecodedString
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
DecodedString
Constructor.- Parameters:
decoded
- The original decoded string to be encoded
-
-
Method Details
-
encode
Encode the string.- Returns:
- Encoded string.
-