@Override
  public int skipBytes(int n) throws IOException {
    int result = dis.skipBytes(n);
    count += result;
    return result;
  }
A data input stream that counts the bytes it plans on reading.


@since GemFire prPersistSprint2
geode-core/src/main/java/org/apache/geode/internal/cache/CountingDataInputStream.java