code: @Override
    public synchronized void reset() {
      finish = false;
      finished = false;
      uncompressedDirectBuf.clear();
      uncompressedDirectBufLen = 0;
      compressedDirectBuf.clear();
      compressedDirectBuf.limit(0);
      userBufOff = userBufLen = 0;
      bytesRead = bytesWritten = 0L;
    }
docs: Resets compressor so that a new set of input data can be processed.