com.opensymphony.oscache.util
Class StringUtil
java.lang.Object
com.opensymphony.oscache.util.StringUtil
- public class StringUtil
- extends Object
Provides common utility methods for handling strings.
- Author:
- Chris Miller
Method Summary |
static List |
split(String str,
char delimiter)
Splits a string into substrings based on the supplied delimiter
character. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringUtil
public StringUtil()
split
public static List split(String str,
char delimiter)
- Splits a string into substrings based on the supplied delimiter
character. Each extracted substring will be trimmed of leading
and trailing whitespace.
- Parameters:
str
- The string to splitdelimiter
- The character that delimits the string
- Returns:
- A string array containing the resultant substrings