|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.util.strings.StringUtil
public final class StringUtil
String utility class that provides sub-string replacement and quoted string escaping
Constructor Summary | |
---|---|
StringUtil()
|
Method Summary | |
---|---|
static String |
escapeQuotes(String str)
Escape any single or double quotes within a string (usefull for strings that will be placed inside HTML inputs) |
static String |
escapeQuotesSQL(String str)
SQL strings use ' as delimeter, so inner quotes must be converted to '' |
static String |
replace(String in,
String find,
String replace,
boolean caseInsensitive)
Given an input string, replace all occurences of a string sequence with a given replacement string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtil()
Method Detail |
---|
public static String escapeQuotes(String str)
str
- public static String escapeQuotesSQL(String str)
str
- public static String replace(String in, String find, String replace, boolean caseInsensitive)
in
- input stringfind
- string sequence match againstreplace
- string to replace matches withcaseInsensitive
- should matching be case insensitive?
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |