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;}
public override void reset(){lock (this){if (buf == null){throw new System.IO.IOException("Stream is closed");}if (-1 == markpos){throw new System.IO.IOException("Mark has been invalidated.");}pos = markpos;}}