StreamTokenizer
- Provides a simple lexical analyzer.
- Analyzes an input stream or a reader.
- Breaks the input up into tokens.
- Same concept as StringTokenizer but on a stream.
- use int nextToken() to :
- get the next token; this is returned into either sval
or nval depending on the type of the token.
- determine the type of the token :
TT_EOF,
TT_EOL,
TT_NUMBER,
TT_WORD.