org.eclipse.mat.util
Class SimpleStringTokenizer

java.lang.Object
  extended by org.eclipse.mat.util.SimpleStringTokenizer
All Implemented Interfaces:
Iterable<String>

public final class SimpleStringTokenizer
extends Object
implements Iterable<String>

A simple way of splitting up a String.


Constructor Summary
SimpleStringTokenizer(String subject, char delim)
          Gets the different part of a string which are separated by the delimiter.
 
Method Summary
 Iterator<String> iterator()
           
static String[] split(String subject, char delim)
          Splits the string at the delimiter character.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleStringTokenizer

public SimpleStringTokenizer(String subject,
                             char delim)
Gets the different part of a string which are separated by the delimiter.

Parameters:
subject -
delim -
Method Detail

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

split

public static String[] split(String subject,
                             char delim)
Splits the string at the delimiter character.

Parameters:
subject -
delim -
Returns:
the string split at the delimiter