Package org.snakeyaml.engine.v2.common
Class UriEncoder
java.lang.Object
org.snakeyaml.engine.v2.common.UriEncoder
To be decided
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Escaper
private static final String
private static final CharsetDecoder
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UTF8Decoder
-
SAFE_CHARS
- See Also:
-
escaper
-
-
Constructor Details
-
UriEncoder
private 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
Decode with URLDecoder- Parameters:
buff
- - the source- Returns:
- decoded with UTF-8
-