@Override
  public byte readByte() throws IOException {
    byte result = dis.readByte();
    count += 1;
    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