@Override
  public char readChar() throws IOException {
    char result = dis.readChar();
    count += 2;
    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