Class UriEncoder

java.lang.Object
org.snakeyaml.engine.v2.common.UriEncoder

public abstract class UriEncoder extends Object
To be decided
  • Field Details

  • Constructor Details

    • UriEncoder

      private UriEncoder()
  • Method Details

    • encode

      public static String encode(String uri)
      Escape special characters with '%'
      Parameters:
      uri - URI to be escaped
      Returns:
      encoded URI
    • decode

      public static String decode(ByteBuffer buff) throws CharacterCodingException
      Decode '%'-escaped characters. Decoding fails in case of invalid UTF-8
      Parameters:
      buff - data to decode
      Returns:
      decoded data
      Throws:
      CharacterCodingException - if cannot be decoded
    • decode

      public static String decode(String buff)
      Decode with URLDecoder
      Parameters:
      buff - - the source
      Returns:
      decoded with UTF-8