Package java.io
Class StreamTokenizer
void eolIsSignificant(boolean flag)
_INSERT_METHOD_SIGNATURE_HERE_
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 whitespace and serve only to separate tokens.
Example
File file = new File("testFile");
InputStream is = new FileInputStream(file);
StreamTokenizer st = new StreamTokenizer(is);
st.eolIsSignificant(true);
All end of line characters are treated as token with the eolIsSignificant method.