|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.neoworks.util.Escaper
Escaper contains methods to escape text and sql.
| Method Summary | |
static java.lang.String |
SQLEscape(java.lang.String s)
Convert a string so it can be included in an SQL statement, by replacing each apostrophe with a pair of apostrophes |
static java.lang.String |
stringEscape(java.lang.String in)
Escape a String (replace " with \") |
static java.lang.String |
XMLEscape(java.lang.String in)
Escape special characters in a String value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String XMLEscape(java.lang.String in)
in - The input string
public static java.lang.String SQLEscape(java.lang.String s)
s - The string to escape
public static java.lang.String stringEscape(java.lang.String in)
in - The String to escape
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||