text: public synchronized void reset() throws IOException {if (buf == null) {throw new IOException("Stream is closed");}if (-1 == markpos) {throw new IOException("Mark has been invalidated.");}pos = markpos;}