Package java.io

Class StreamTokenizer

extends Object

The StreamTokenizer class takes an input stream and parse it into tokens, allowing the tokens to be read one at a time. The parsing process is controlled by a table and a number of flags that can be set to various states. The stream tokenizer can recognize identifiers, numbers, quoted strings, and various comment styles.

Valid input values for the stream tokenizer are between '\u0000' and '\u00FF'. The input values are regarded as characters with five possible attributes: whitespace, alphabetic, numeric, string quote, and comment character. Each character can have zero or more of these attributes.

Instances of the string tokenizer can have the following flags:

Public Constructors

Public Methods

Methods inherited from java.lang.Object

_INSERT_INHERITED_METHOD_ENTRY_HERE_

Public Fields

  • float nval
  • String sval
  • static final int TT_EOF
  • static final int TT_EOL
  • static final int TT_NUMBER
  • static final int TT_WORD
  • int ttype

_INSERT_FIELDS_ENTRY_HERE_