|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.hermesftp.utils.StringUtils
public final class StringUtils
Utilities for handling strings.
| Method Summary | |
|---|---|
static java.lang.String |
convertLstToString(java.util.List<java.lang.String> list)
Converts the passed list to a comma separated string. |
static java.lang.String |
encodeRegex(java.lang.String s)
Quotes the special characters of a given regular expression string. |
static java.lang.Integer[] |
parseIntegerList(java.lang.String portListStr)
Parses a string encoded list of integer values. |
static boolean |
validateEmail(java.lang.String email)
Validates the syntax of the passed email. |
| 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 convertLstToString(java.util.List<java.lang.String> list)
list - The list to be converted.
public static boolean validateEmail(java.lang.String email)
email - The email.
public static java.lang.String encodeRegex(java.lang.String s)
This.is.an.example --> This\.is\.an\.example
s - The unencoded string.
public static java.lang.Integer[] parseIntegerList(java.lang.String portListStr)
1000-1011,1022,1023,2000-3000
portListStr - Encoded list of integer values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||