edu.rice.cs.plt.text
Class TextUtil.SplitString

java.lang.Object
  extended by edu.rice.cs.plt.text.TextUtil.SplitString
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
TextUtil

public static class TextUtil.SplitString
extends java.lang.Object
implements java.io.Serializable

The result of a split() invocation. The original string can be formed by concatenating splits(), delims() (interleaved), and rest().

See Also:
Serialized Form

Method Summary
 java.lang.String[] array()
          Fill an array with the non-delimiter portions of the original string.
 java.util.List<java.lang.String> delimiters()
          The delimiters that followed the corresponding members of splits().
 java.lang.String rest()
          The tail portion of the input string.
 java.util.List<java.lang.String> splits()
          The sequence of strings that were followed by a recognized delimiter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

splits

public java.util.List<java.lang.String> splits()
The sequence of strings that were followed by a recognized delimiter. splits().size() == delims().size().


delimiters

public java.util.List<java.lang.String> delimiters()
The delimiters that followed the corresponding members of splits(). splits().size() == delims().size().


rest

public java.lang.String rest()
The tail portion of the input string. Either this string contains no delimiters, or it was left unsearched.


array

public java.lang.String[] array()
Fill an array with the non-delimiter portions of the original string. The array has the same form as the result of String#split. It always has length >= 1 and <= limit, if limit (a parameter of the split method) was positive.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object