LineNumberInputStream.mark

LineNumberInputStream.mark

Class Overview | Class Members | This Package | All Packages

Syntax
public void mark( int readlimit )
Parameters
readlimit
the maximum limit of bytes that can be read before the mark position becomes invalid.
Description
Marks the current position in this input stream. A subsequent call to the reset method repositions this stream at the last marked position so that subsequent reads re-read the same bytes.

The mark method of LineNumberInputStream remembers the current line number in a private variable, and then calls the mark method of the underlying input stream.

Overrides
mark in class FilterInputStream
See Also
in, reset