com.opensymphony.oscache.util
Class StringUtil

java.lang.Object
  extended by com.opensymphony.oscache.util.StringUtil

public class StringUtil
extends Object

Provides common utility methods for handling strings.

Author:
Chris Miller

Constructor Summary
StringUtil()
           
 
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
 

Constructor Detail

StringUtil

public StringUtil()
Method Detail

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 split
delimiter - The character that delimits the string
Returns:
A string array containing the resultant substrings

OSCache Project Page