FilterInputStream.mark

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

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

The mark method of FilterInputStream calls the mark method of its underlying input stream with the readlimit argument.

Overrides
mark in class InputStream
See Also
in, reset