mark
Marks the present position in the stream:contentReferenceoaicite:15{index=15}. Subsequent calls to reset will attempt to reposition the stream to this point:contentReferenceoaicite:16{index=16}. The readAheadLimit argument tells how many characters may be read while still preserving the mark. If more than readAheadLimit chars are read after marking, the mark is invalidated.
A limit value larger than the buffer size will cause a new buffer to be allocated with a size not smaller than the given limit:contentReferenceoaicite:17{index=17}.
Parameters
readAheadLimit
the number of characters to read while still preserving the mark position:contentReferenceoaicite:18{index=18}.
Throws
if readAheadLimit is negative:contentReferenceoaicite:19{index=19}.
IOException
if an I/O error occurs.