Constructor and Description |
---|
XMLUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
escapeXML(String s,
boolean onlyASCII)
Escapes a string with the appropriated XML codes.
|
static String |
getEncodingName(byte[] b4)
Returns the IANA encoding name that is auto-detected from
the bytes specified, with the endian-ness of that encoding where appropriate.
|
public XMLUtil()
public static String escapeXML(String s, boolean onlyASCII)
s
- the string to be escapedonlyASCII
- codes above 127 will always be escaped with &#nn; if true
public static String getEncodingName(byte[] b4)
b4
- The first four bytes of the input.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses