|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mailet.base.StringUtils
public final class StringUtils
Collects useful string utility methods.
| Method Summary | |
|---|---|
static String |
capitalizeWords(String data)
Capitalizes each word in the given text by converting the first letter to upper case. |
static String |
md5(String message)
Creates an MD5 digest from the message. |
static String[] |
split(String text,
String pattern)
Splits a string given a pattern (regex), considering escapes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String[] split(String text,
String pattern)
For example considering a pattern "," we have: one,two,three => {one},{two},{three} one\,two\\,three => {one,two\\},{three}
NOTE: Untested with pattern regex as pattern and untested for escape chars in text or pattern.
public static String md5(String message)
message - not null
public static String capitalizeWords(String data)
data - text to be capitalize, possibly null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||