public synchronized void reset () throws IOException

Repositions this stream to the position at the time the mark method was last called on this input stream.

The general contract of reset is:

The method reset for class InputStream does nothing except throw an IOException.

IOException    if this stream has not been marked or if the mark has been invalidated.

See also:,