@Override
    public long skip(long n) throws IOException {
      makeRoom((int) n);
      int result = super.read(readBytes, idx, (int) n);
      if (result == -1) {
        return 0;
      } else {
        idx += result;
        return result;
      }
    }
Writes all the bytes, read or skipped, since the last reset to the specified output stream.
Does a mark and reset after the write.
geode-core/src/main/java/org/apache/geode/internal/statistics/ArchiveSplitter.java