Class Decoder
java.lang.Object
org.apache.olingo.odata2.core.commons.Decoder
Decodes a Java String containing a percent-encoded UTF-8 String value
into a Java String (in its internal UTF-16 encoding).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Decoder
public Decoder()
-
-
Method Details
-
decode
Decodes a percent-encoded UTF-8 String value into a Java String (in its internal UTF-16 encoding).- Parameters:
value- the encoded String- Returns:
- the Java String
- Throws:
IllegalArgumentException- if value contains characters not representing UTF-8 bytes or ends with an unfinished percent-encoded characterNumberFormatException- if the two characters after a percent character are not hexadecimal digits
-