Public class StreamTokenizer extends Object
Constructor | Description |
---|---|
StreamTokenizer (Reader r) | The function of this constructor is to create Java.io StreamTokenizer to parse the stream of characters. |
Methods | Description |
---|---|
int lineno() | The function of this method is to return the current line number. |
int nextToken() | The function of this method is to parse the next token from input stream. |
void parseNumbers() | The function of this method is to represent the numbers parsed by token. |
void wordChars(int low, int hi) | The function of this method is to represent the range of characters that are word constituents. |
void slashslashComments(boolean flag) | The function of this method is to check whether the comments of CPP are recognized by tokenizer. |
void resetSyntax() | The function of this method is to reset the syntax of tokenizer, then all the characters in ordinary position. |
void CommentChar(int ch) | The function of this method is to represent an single line comment from given argument. |
void ordinaryChar(int ch) | The function of this method is to represent that the characters in tokenizer are ordinary. |