public class UTF8Reader extends Object
Remark : XML UTF8 files does not accept pure Unicode Strings if they are not encoded using UTF8 constructs. therefore, it is not allowed, for example, to use in a XML file the following String : é, one should use this construct instead : "é", which is the escaped Unicode sequence for this String.
Modifier and Type | Method and Description |
---|---|
static UTF8Reader |
getReader()
Return the singleton reader.
|
String |
hexToString(String s)
Convert an escaped Unicode sequence to its equivalent Java String.
|
String |
stringToHex(String s)
Convert a Java String to its equivalent escaped Unicode sequence.
|
public static UTF8Reader getReader()
public String stringToHex(String s)
s
- the StringhexToString(java.lang.String)
public String hexToString(String s)
s
- the escaped Unicode sequencestringToHex(java.lang.String)