org.apache.tapestry.util
Class StringSplitter
java.lang.Object
org.apache.tapestry.util.StringSplitter
public class StringSplitter
- extends Object
Used to split a string into substrings based on a single character delimiter.
A fast, simple version of StringTokenizer
.
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringSplitter
public StringSplitter(char delimiter)
getDelimiter
public char getDelimiter()
splitToArray
public String[] splitToArray(String value)
- Splits a string on the delimter into an array of String tokens. The
delimiters are not included in the tokens. Null tokens (caused by two
consecutive delimiter) are reduced to an empty string. Leading delimiters
are ignored.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.