LineNumberReader.mark

LineNumberReader.mark

Class Overview | Class Members | This Package | All Packages

Syntax
public void mark( int readAheadLimit ) throws IOException
Parameters
readAheadLimit
Limit on the number of characters that may be read while still preserving the mark. After reading this many characters, attempting to reset the stream may fail.
Description
Mark the present position in the stream. Subsequent calls to reset() will attempt to reposition the stream to this point, and will also reset the line number appropriately.

Exceptions
IOException If an I/O error occurs
Overrides
mark in class BufferedReader