Class Decoder
- java.lang.Object
-
- org.apache.olingo.odata2.core.commons.Decoder
-
public class Decoder extends Object
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 Constructor Description Decoder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringdecode(String value)Decodes a percent-encoded UTF-8 String value into a Java String (in its internal UTF-16 encoding).
-
-
-
Method Detail
-
decode
public static String decode(String value) throws IllegalArgumentException, NumberFormatException
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
-
-