public void clear() {
      if (compressedOut != null) {
        try {
          compressedOut.close();
        } catch (IOException e) {
          LOG.warn("Exception closing compressed output stream", e);
        }
      }
      compressedOut = null;
      if (lowerOut != null) {
        try {
          lowerOut.close();
        } catch (IOException e) {
          LOG.warn("Exception closing lower output stream", e);
        }
      }
      lowerOut = null;
      if (compressedIn != null) {
        try {
          compressedIn.close();
        } catch (IOException e) {
          LOG.warn("Exception closing compressed input stream", e);
        }
      }
      compressedIn = null;
      if (lowerIn != null) {
        try {
          lowerIn.close();
        } catch (IOException e) {
          LOG.warn("Exception closing lower input stream", e);
        }
      }
      lowerIn = null;
      if (compressor != null) {
        compressor.reset();
      }
      if (decompressor != null) {
        decompressor.reset();
      }
    }
Read an integer from the stream in big-endian byte order.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/CompressionContext.java