StreamTokenizer
Create a tokenizer that parses the given character stream.
Since
1.1
Parameters
a Reader object providing the input stream.
Deprecated
As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example: {@snippet lang=java : * Reader r = new BufferedReader(new InputStreamReader(is)); * StreamTokenizer st = new StreamTokenizer(r); * }
Creates a stream tokenizer that parses the specified input stream. The stream tokenizer is initialized to the following default state:
All byte values
'A'through'Z','a'through'z', and'\u005Cu00A0'through'\u005Cu00FF'are considered to be alphabetic.All byte values
'\u005Cu0000'through'\u005Cu0020'are considered to be white space.'/'is a comment character.Single quote
'\u005C''and double quote'"'are string quote characters.Numbers are parsed.
Ends of lines are treated as white space, not as separate tokens.
C-style and C++-style comments are not recognized.
Parameters
an input stream.