API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. StringTokenizer View Source
Author(s)
unascribed
Since
JDK1.0
Version
1.35, 11/17/05
Serial
Hierarchy
 Object
      StringTokenizer
Implements
 Enumeration
Subclasses
Description
public class StringTokenizer
  The string tokenizer class allows an application to break a string into tokens.
See also:    StreamTokenizer
Constructors
public StringTokenizer (String str)
  Constructs a string tokenizer for the specified string.
public StringTokenizer (String str, String delim)
  Constructs a string tokenizer for the specified string.
public StringTokenizer (String str, String delim, boolean returnDelims)
  Constructs a string tokenizer for the specified string.
Methods
Hide/Show inherited methods
public int countTokens ()
  Calculates the number of times that this tokenizer's nextToken method can be called before it generates an exception.
public boolean hasMoreElements () [Specified in Enumeration]
  Returns the same value as the hasMoreTokens method.
public boolean hasMoreTokens ()
  Tests if there are more tokens available from this tokenizer's string.
public Object nextElement () [Specified in Enumeration]
  Returns the same value as the nextToken method, except that its declared return value is Object rather than String.
public String nextToken ()
  Returns the next token from this string tokenizer.
public String nextToken (String delim)
  Returns the next token in this string tokenizer's string.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar