Java java.io StreamTokenizer fields, constructors, methods, implement or subclass

Example usage for Java java.io StreamTokenizer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io StreamTokenizer.

The text is from its open source code.

Field

intTT_EOF
A constant indicating that the end of the stream has been read.
intTT_EOL
A constant indicating that the end of the line has been read.
intTT_NUMBER
A constant indicating that a number token has been read.
intTT_WORD
A constant indicating that a word token has been read.

Constructor

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.

Method

voidcommentChar(int ch)
Specified that the character argument starts a single-line comment.
voideolIsSignificant(boolean flag)
Determines whether or not ends of line are treated as tokens.
voidlowerCaseMode(boolean fl)
Determines whether or not word token are automatically lowercased.
intnextToken()
Parses the next token from the input stream of this tokenizer.
voidordinaryChar(int ch)
Specifies that the character argument is "ordinary" in this tokenizer.
voidordinaryChars(int low, int hi)
Specifies that all characters c in the range low <= c <= high are "ordinary" in this tokenizer.
voidparseNumbers()
Specifies that numbers should be parsed by this tokenizer.
voidpushBack()
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.
voidquoteChar(int ch)
Specifies that matching pairs of this character delimit string constants in this tokenizer.
voidresetSyntax()
Resets this tokenizer's syntax table so that all characters are "ordinary."
voidslashSlashComments(boolean flag)
Determines whether or not the tokenizer recognizes C++-style comments.
voidslashStarComments(boolean flag)
Determines whether or not the tokenizer recognizes C-style comments.
StringtoString()
Returns the string representation of the current stream token and the line number it occurs on.
voidwhitespaceChars(int low, int hi)
Specifies that all characters c in the range low <= c <= high are white space characters.
voidwordChars(int low, int hi)
Specifies that all characters c in the range low <= c <= high are word constituents.