@Override
  public synchronized void reset() throws IOException {
    if (!in.markSupported()) {
      throw new IOException("Mark not supported");
    }
    if (myMark == -1) {
      throw new IOException("Mark not set");
    }

    in.reset();
    myBytesRead = myMark;
  }
@Override
  public synchronized void reset()