|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.util.StringUtil
public class StringUtil
Utility class useful when dealing with string objects. This class is a collection of static functions, and the usage is: StringUtil.method() it is not allowed to create instances of this class
Method Summary | |
---|---|
static boolean |
equalsIgnoreCase(java.lang.String string1,
java.lang.String string2)
This method is missing in CLDC 1.0 String implementation |
static int |
findEmptyLine(java.lang.String s)
Find two consecutive newlines in a string. |
static java.lang.String |
fold(java.lang.String recipients)
Builds a list of the recipients email addresses each on a different line, starting just from the second line with an HT ("\t") separator at the head of the line. |
static boolean |
getBooleanValue(java.lang.String string)
Util method for retrieve a boolean primitive type from a String. |
static java.lang.String[] |
getStringArray(java.util.Vector stringVec)
Returns the string array |
static boolean |
isNullOrEmpty(java.lang.String str)
Returns true if the given string is null or empty. |
static java.lang.String |
join(java.lang.String[] list,
java.lang.String sep)
Split the string into an array of strings using one of the separator in 'sep'. |
static java.lang.String |
removeBackslashes(java.lang.String content)
Removes unwanted backslashes characters |
static java.lang.String |
removeBlanks(java.lang.String content)
Removes unwanted blank characters |
static java.lang.String[] |
split(java.lang.String s,
java.lang.String sep)
Split the string into an array of strings using one of the separator in 'sep'. |
static java.lang.String |
trim(java.lang.String s,
char c)
Removes characters 'c' from the beginning and the end of the string |
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[] split(java.lang.String s, java.lang.String sep)
s
- the string to tokenizesep
- a list of separator to use
public static java.lang.String join(java.lang.String[] list, java.lang.String sep)
list
- the string array to joinsep
- the separator to use
public static java.lang.String[] getStringArray(java.util.Vector stringVec)
stringVec
- the Vecrot of tring to convert
public static int findEmptyLine(java.lang.String s)
s
- - The string to search
public static java.lang.String removeBlanks(java.lang.String content)
content
-
public static java.lang.String removeBackslashes(java.lang.String content)
content
- The string containing the backslashes to be removed
public static java.lang.String fold(java.lang.String recipients)
recipients
- A string containing all recipients comma-separated
public static boolean equalsIgnoreCase(java.lang.String string1, java.lang.String string2)
public static boolean getBooleanValue(java.lang.String string)
public static java.lang.String trim(java.lang.String s, char c)
public static boolean isNullOrEmpty(java.lang.String str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |