Package org.yaml.snakeyaml.util
Class UriEncoder
java.lang.Object
org.yaml.snakeyaml.util.UriEncoder
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UriEncoder
public UriEncoder()
-
-
Method Details
-
encode
Escape special characters with '%'- Parameters:
uri
- URI to be escaped- Returns:
- encoded URI
-
decode
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
-