Class DecodedString

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

    • DecodedString

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

    • encode

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