Marks the current position in this input stream. A subsequent call to
reset method repositions this stream at the last marked
position so that subsequent reads re-read the same bytes.
readlimit arguments tells this input stream to
allow that many bytes to be read before the mark position gets
The general contract of
mark is that, if the method
true, the stream somehow
remembers all the bytes read after the call to
stands ready to supply those same bytes again if and whenever the method
reset is called. However, the stream is not required to
remember any data at all if more than
readlimit bytes are
read from the stream before
reset is called.
Marking a closed stream should not have any effect on the stream.
mark method of
|the maximum limit of bytes that can be read before the mark position becomes invalid.|