|
Jacson | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.util.StringUtil
A utility class providing operations for String objects
Constructor Summary | |
StringUtil()
|
Method Summary | |
static java.util.Set |
getTokensAsSet(java.lang.String string,
char delim)
Tokenize a String. |
static java.util.Set |
getTokensAsSet(java.lang.String str,
java.lang.String delims)
Tokenize a String. |
static java.lang.String |
translate(java.lang.String str,
java.lang.String old,
java.lang.String neu)
Replace characters in a 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 java.util.Set getTokensAsSet(java.lang.String string, char delim)
string
- A string to tokenizedelim
- the token separator char
public static java.util.Set getTokensAsSet(java.lang.String str, java.lang.String delims)
str
- A string to tokenizedelims
- A set of characters to separate tokens
public static java.lang.String translate(java.lang.String str, java.lang.String old, java.lang.String neu)
str
- String to modifyold
- "Set" of old charactersneu
- "Set" of new characters
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |