StreamTokenizer.eolIsSignificant

StreamTokenizer.eolIsSignificant

Class Overview | Class Members | This Package | All Packages

Syntax
public void eolIsSignificant( boolean flag )
Parameters
flag
true indicates that end-of-line characters are separate tokens; false indicates that end-of-line characters are white space.
Description
Determines whether or not ends of line are treated as tokens. If the flag argument is true, this tokenizer treats end of lines as tokens; the 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.

See Also
nextToken, ttype, TT_EOL