|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dtw.webmail.util.StringUtil
Class that contains static utility methods to handle Strings.
Field Summary | |
static java.text.SimpleDateFormat |
DEFAULT_DATEFORMAT
Defines a simple date format, to be used for returning the formatted date. |
Constructor Summary | |
StringUtil()
|
Method Summary | |
static boolean |
contains(java.lang.String[] strs,
java.lang.String str)
|
static java.lang.String |
getFormattedDate()
Returns now, as String formatted with DEFAULT_DATEFORMAT. |
static java.lang.String |
join(java.lang.String[] items,
java.lang.String delim)
Method that joins an array of strings into a string with delimited fields |
static java.lang.String |
repairPath(java.lang.String path)
This method is used to circumvent a bug (or feature) in the URLClassLoader, which prevents it from being able to use file url's with path strings which contain a .. Example: /usr/local/tomcat/bin/../webapps/webmail/WEB-INF/i18n/ does not properly work, whereas /usr/local/tomcat/webapps/webmail/WEB-INF/i18n/ which represents the same (for the File class it makes no difference whatsoever), but works. |
static java.lang.String[] |
split(java.lang.String str,
java.lang.String delim)
Method that splits a string with delimited fields into an array of strings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.text.SimpleDateFormat DEFAULT_DATEFORMAT
Constructor Detail |
public StringUtil()
Method Detail |
public static java.lang.String[] split(java.lang.String str, java.lang.String delim)
str
- String with delimited fields.delim
- String that represents the delimiter.
public static java.lang.String join(java.lang.String[] items, java.lang.String delim)
items
- an array of strings.delim
- String that represents the delimiter.
public static java.lang.String repairPath(java.lang.String path)
public static boolean contains(java.lang.String[] strs, java.lang.String str)
public static java.lang.String getFormattedDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |