com.mot.iden.util
Class StringTokenizer

java.lang.Object
  extended bycom.mot.iden.util.StringTokenizer
All Implemented Interfaces:
java.util.Enumeration

public class StringTokenizer
extends java.lang.Object
implements java.util.Enumeration

This class implements a iDEN specific StringTokenizer. It is essentially a lightweight version of the full blown java.util.StringTokenizer found in J2SE. This particular Implementation either parses on a given char or a space.


Constructor Summary
StringTokenizer(java.lang.String string)
          This constructor takes a String and tokenizes it with a ' '.
StringTokenizer(java.lang.String string, char delimiter)
          This constructor takes a String and tokenizes it with the char passed in.
 
Method Summary
 boolean hasMoreElements()
          Returns true if this StringTokenizer has more tokens, otherwise it returns false.
 java.lang.Object nextElement()
          Returns the next token in this StringTokenizer as an Object.
 java.lang.String nextToken()
          Returns the next token in this StringTokenizer as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTokenizer

public StringTokenizer(java.lang.String string,
                       char delimiter)
This constructor takes a String and tokenizes it with the char passed in. The delimiter is not returned as a token.


StringTokenizer

public StringTokenizer(java.lang.String string)
This constructor takes a String and tokenizes it with a ' '. The ' ' is not returned as a token.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns true if this StringTokenizer has more tokens, otherwise it returns false.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
boolean true if more tokens, false otherwise.

nextElement

public java.lang.Object nextElement()
Returns the next token in this StringTokenizer as an Object.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
Object The next token as an Object

nextToken

public java.lang.String nextToken()
Returns the next token in this StringTokenizer as a String.

Returns:
String The next token as an String