public void reset(InputStream in, long limit) {
    this.in = in;
    this.limit = limit;
    this.pos = 0;
  }
This class is only used by WAL ValueCompressor for decompression.
<p>
<strong>WARNING: </strong>The implementation is very tricky and does not follow typical
InputStream pattern, so do not use it in any other places.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/WALDecompressionBoundedDelegatingInputStream.java