reset
public void reset(HighlightedDocument.DocumentReader reader,
int ch)
throws java.io.IOException
Closes the current input stream, and resets the scanner to read from a
new input stream. All internal variables are reset, the old input stream
cannot be reused (content of the internal buffer is discarded and lost).
The lexical state is set to the initial state. Subsequent tokens read
from the lexer will start with the line, char, and column values given
here.
- Parameters:
reader
- The new input.
ch
- The position (relative to the start of the stream) of the first
token.
- Throws:
java.io.IOException
- If an error occurs