|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javatools.util.StringUtils
Contains a set of function to manage string.
Constructor Summary | |
StringUtils()
Creates new StringUtils |
Method Summary | |
static java.lang.String |
proper(java.lang.String inString)
Sets as upper case the first letter of each word (and lowers all the others). |
static java.lang.String |
toSQLSearchString(java.lang.String inString)
Removes extra spaces, replaces spaces with "%" and puts "%" at the beginning and at the end of the passed string. |
static java.lang.String[] |
toTokenArray(java.lang.String inString)
Tokenizes a string (using spaces as delimiters) and returns the tokens as an array. |
static java.lang.String[] |
toTokenArray(java.lang.String inString,
java.lang.String delim)
Tokenizes a string (using a specified delimiter) and returns the tokens as an array. |
static java.util.List |
toTokenList(java.lang.String inString)
Tokenizes a string (using spaces as delimiters) and returns the tokens as a list. |
static java.util.List |
toTokenList(java.lang.String inString,
java.lang.String delim)
Tokenizes a string (using a specified delimiter) and returns the tokens as a List. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringUtils()
Method Detail |
public static java.lang.String proper(java.lang.String inString)
inString
- The string to "properize".
public static java.lang.String toSQLSearchString(java.lang.String inString)
inString
- The string to be processed.
public static java.lang.String[] toTokenArray(java.lang.String inString)
inString
- The string to be processed.
public static java.lang.String[] toTokenArray(java.lang.String inString, java.lang.String delim)
inString
- The string to be processed.delim
- The delimiter to be used.
public static java.util.List toTokenList(java.lang.String inString)
inString
- The string to be processed.
public static java.util.List toTokenList(java.lang.String inString, java.lang.String delim)
inString
- The string to be processed.delim
- The delimiter to be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |