public class Escape
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BACKSLASHESCAPE |
static java.lang.String[][] |
DEFAULTTRANSTABLE |
static java.lang.String |
hexchars |
Constructor and Description |
---|
Escape() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
backslashEscape(java.lang.String s,
java.lang.String wrt)
Escape control chars plus
selected other characters in a string using backslash
|
static java.lang.String |
backslashUnescape(java.lang.String s)
Remove backslashed characters in a string
|
static java.lang.String |
bytes2hex(byte[] bytes) |
static boolean |
entitychar(char c) |
static java.lang.String |
entityEscape(java.lang.String s)
Escape selected characters in a string using XML entities
|
static java.lang.String |
entityUnescape(java.lang.String s) |
static java.lang.String |
entityUnescape(java.lang.String s,
java.lang.String[][] translations) |
static int |
fromHex(char c) |
static boolean |
isHexDigit(char c) |
static java.lang.String |
toHex(int i) |
static java.lang.String |
urlDecode(java.lang.String s) |
static java.lang.String |
urlEncodeQuery(java.lang.String s) |
public static final java.lang.String[][] DEFAULTTRANSTABLE
public static final java.lang.String BACKSLASHESCAPE
public static final java.lang.String hexchars
public static boolean entitychar(char c)
public static java.lang.String entityEscape(java.lang.String s)
public static java.lang.String entityUnescape(java.lang.String s)
public static java.lang.String entityUnescape(java.lang.String s, java.lang.String[][] translations)
public static java.lang.String backslashEscape(java.lang.String s, java.lang.String wrt)
public static java.lang.String backslashUnescape(java.lang.String s)
public static java.lang.String toHex(int i)
public static int fromHex(char c)
public static boolean isHexDigit(char c)
public static java.lang.String bytes2hex(byte[] bytes)
public static java.lang.String urlDecode(java.lang.String s)
public static java.lang.String urlEncodeQuery(java.lang.String s)