Constructor StreamTokenizer
StreamTokenizer(Stream)
Constructs a new StreamTokenizer with input
as source input
stream. This constructor is deprecated; instead, the constructor that
takes a
Declaration
public StreamTokenizer(Stream input)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | the source stream from which to parse tokens. |
StreamTokenizer(TextReader)
Constructs a new {@code StreamTokenizer} with {@code r} as source reader. The tokenizer's initial state is as follows:
- All byte values 'A' through 'Z', 'a' through 'z', and '\u00A0' through '\u00FF' are considered to be alphabetic.
- All byte values '\u0000' through '\u0020' are considered to be white space. '/' is a comment character.
- Single quote ''' and double quote '"' are string quote characters.
- Numbers are parsed.
- End of lines are considered to be white space rather than separate tokens.
- C-style and C++-style comments are not recognized.
Declaration
public StreamTokenizer(TextReader reader)
Parameters
Type | Name | Description |
---|---|---|
TextReader | reader | The source text reader from which to parse tokens. |