Package org.yaml.snakeyaml.util
Class UriEncoder
java.lang.Object
org.yaml.snakeyaml.util.UriEncoder
public abstract class UriEncoder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description UriEncoder() -
Method Summary
-
Constructor Details
-
UriEncoder
public UriEncoder()
-
-
Method Details
-
encode
public static java.lang.String encode(java.lang.String uri)Escape special characters with '%'- Parameters:
uri- URI to be escaped- Returns:
- encoded URI
-
decode
public static java.lang.String decode(java.nio.ByteBuffer buff) throws java.nio.charset.CharacterCodingExceptionDecode '%'-escaped characters. Decoding fails in case of invalid UTF-8- Parameters:
buff- data to decode- Returns:
- decoded data
- Throws:
java.nio.charset.CharacterCodingException- if cannot be decoded
-
decode
public static java.lang.String decode(java.lang.String buff)
-