|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sourceforge.jxutil.StringEscape
Escape the contents of a String for use in different environments.
| Field Summary | |
static char[] |
HEXDIGITS
An array of lowercase hex digits for fast lookup. |
static char[] |
HEXDIGITS_U
An array of uppercase hex digits for fast lookup. |
| Constructor Summary | |
private |
StringEscape()
Cannot instantiate. |
| Method Summary | |
static String |
escapeJava(String src)
Escape a String to form a valid Java source string. |
static String |
escapeURI(byte[] octets)
Escape octet bytes into URI form. |
static String |
escapeURI(String src)
Escape a string into URI form. |
static String |
unescapeJava(String src)
Get the literal value of a String that was escaped in a Java source. |
static String |
unescapeURI(String src)
Unescape an URI encoded string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char[] HEXDIGITS
public static final char[] HEXDIGITS_U
| Constructor Detail |
private StringEscape()
| Method Detail |
public static String escapeJava(String src)
src - The original string.
public static String escapeURI(byte[] octets)
octets - The original octets.
public static String escapeURI(String src)
src - The original String.
public static String unescapeJava(String src)
src - The escaped string.
public static String unescapeURI(String src)
src - The escaped string.
|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||