|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.zmicer.utils.StringUtils
public class StringUtils
This class contains utilities working with String object (advanced splitting functionality etc).
$Author:: zmicer $
$Rev:: 57 $
* $Date:: 2007-08-23 09:16:37 #$
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOG
Logger instance. |
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static Boolean |
getBoolean(String string)
Safely convert the String to Boolean |
static Integer |
getInteger(String string)
Return the Integer using the provided String. |
static String |
joinStringsWithLineFolding(List<String> strings)
Split the provided string using the line folding as separator. |
static List<String> |
split(String str,
String splitter)
Make the splitting of the String into the List of String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static List<String> split(String str, String splitter)
StringTokenizer
is used for splitting the String.
splitter
- The String splitter, Can not be null (otherwise IllegalArgumentException
would appear).str
- String to be splitted, Can not be null (otherwise IllegalArgumentException
would appear).
str
source stringpublic static Boolean getBoolean(String string)
string
- String to be converted, Can not be null/empty (otherwise IllegalArgumentException
would appear).
public static Integer getInteger(String string)
string
- String to be processed. Can not be null or empty (otherwise IllegalArgumentException
would appear).
public static String joinStringsWithLineFolding(List<String> strings)
strings
- the List of String to be splitted. Can not be null (otherwise IllegalArgumentException
would appear).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |