BufferedInputStream.mark

BufferedInputStream.mark

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized 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 the stream at the last marked position so that subsequent reads re-read the same bytes.

The readlimit argument tells the input stream to allow that many bytes to be read before the mark position gets invalidated.

Overrides
mark in class FilterInputStream
See Also
reset