nextToken
method returns TT_EOL
and also sets the ttype
field to this value when an end of line is read. A line is a sequence of characters ending with either a carriage-return character ('\r'
) or a newline character ('\n'
). In addition, a carriage-return character followed immediately by a newline character is treated as a single end-of-line token.
If the flag
is false, end-of-line characters are treated as white space and serve only to separate tokens.
@param flag true
indicates that end-of-line charactersare separate tokens; false
indicates that end-of-line characters are white space.
@see java.io.StreamTokenizer#nextToken()
@see java.io.StreamTokenizer#ttype
@see java.io.StreamTokenizer#TT_EOL
|
|
|
|