Example usage for Java java.io StreamTokenizer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TT_EOF A constant indicating that the end of the stream has been read. |
int | TT_EOL A constant indicating that the end of the line has been read. |
int | TT_NUMBER A constant indicating that a number token has been read. |
int | TT_WORD A constant indicating that a word token has been read. |
StreamTokenizer(InputStream is) Creates a stream tokenizer that parses the specified input stream. | |
StreamTokenizer(Reader r) Create a tokenizer that parses the given character stream. |
void | commentChar(int ch) Specified that the character argument starts a single-line comment. |
void | eolIsSignificant(boolean flag) Determines whether or not ends of line are treated as tokens. |
void | lowerCaseMode(boolean fl) Determines whether or not word token are automatically lowercased. |
int | nextToken() Parses the next token from the input stream of this tokenizer. |
void | ordinaryChar(int ch) Specifies that the character argument is "ordinary" in this tokenizer. |
void | ordinaryChars(int low, int hi) Specifies that all characters c in the range low <= c <= high are "ordinary" in this tokenizer. |
void | parseNumbers() Specifies that numbers should be parsed by this tokenizer. |
void | pushBack() Causes the next call to the nextToken method of this tokenizer to return the current value in the ttype field, and not to modify the value in the nval or sval field. |
void | quoteChar(int ch) Specifies that matching pairs of this character delimit string constants in this tokenizer. |
void | resetSyntax() Resets this tokenizer's syntax table so that all characters are "ordinary." |
void | slashSlashComments(boolean flag) Determines whether or not the tokenizer recognizes C++-style comments. |
void | slashStarComments(boolean flag) Determines whether or not the tokenizer recognizes C-style comments. |
String | toString() Returns the string representation of the current stream token and the line number it occurs on. |
void | whitespaceChars(int low, int hi) Specifies that all characters c in the range low <= c <= high are white space characters. |
void | wordChars(int low, int hi) Specifies that all characters c in the range low <= c <= high are word constituents. |