BufferedReader.mark
Class Overview | Class Members |
This Package |
All Packages
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. A limit value larger
than the size of the input buffer will cause a
new buffer to be allocated whose size is no
smaller than limit. Therefore large values
should be used with care.
Description
Mark the present position in the stream. Subsequent calls to reset()
will attempt to reposition the stream to this point.
Exceptions
IllegalArgumentException
If readAheadLimit is < 0
Exceptions
IOException
If an I/O error occurs
Overrides
mark in class Reader