|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigpp.util.Encode
public class Encode
Methods to encode a string for a particular environment. Supports encoding for SQL, URL and HTML uses.
Constructor Summary | |
---|---|
Encode()
|
Method Summary | |
---|---|
static String |
htmlDecode(String term)
Convert special characters in a string for display as HTML document. |
static String |
htmlEncode(String term)
Convert special characters in a string for use in an HTML document. |
static String |
regexEncode(String term)
Convert a string with convention wild cards to Regular Expression (regex) equivalents. |
static String |
sqlEncode(String term)
Convert a string with convention wild cards to SQL equivalents. |
static String |
urlDecode(String term)
Convert special characters in a string for use in an URL. |
static String |
urlEncode(String term)
Convert special characters in a string for use in an URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Encode()
Method Detail |
---|
public static String sqlEncode(String term)
term
- the text to encode.
public static String regexEncode(String term)
term
- the text to encode.
public static String urlEncode(String term)
term
- the text to encode.
public static String urlDecode(String term)
term
- the text to decode.
public static String htmlEncode(String term)
term
- the text to encode.
public static String htmlDecode(String term)
term
- the text to decode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |