Repositions this stream to the position at the time the
mark method was last called on this input stream.
The general contract of
markhas not been called since the stream was created, or the number of bytes read from the stream since
markwas last called is larger than the argument to
markat that last call, then an
IOExceptionmight be thrown.
IOExceptionis not thrown, then the stream is reset to a state such that all the bytes read since the most recent call to
mark(or since the start of the file, if
markhas not been called) will be resupplied to subsequent callers of the
readmethod, followed by any bytes that otherwise would have been the next input data as of the time of the call to
resetmay throw an
IOExceptionis not thrown, then the stream is reset to a fixed state that depends on the particular type of the input stream and how it was created. The bytes that will be supplied to subsequent callers of the
readmethod depend on the particular type of the input stream.
reset for class
does nothing except throw an
|if this stream has not been marked or if the mark has been invalidated.|