public boolean supportsByteBuffDecompression() {
      CompressionCodec codec = getCodec(conf);
      return codec instanceof ByteBuffDecompressionCodec;
    }
Signals if this codec theoretically supports decompression on {@link ByteBuff}s. This can be
faster than using a DecompressionStream. If this method returns true, you can call
{@link #getByteBuffDecompressor()} to obtain a {@link ByteBuffDecompressor}. You must then
also call {@link ByteBuffDecompressor#canDecompress(ByteBuff, ByteBuff)} before attempting
decompression, to verify if that decompressor is capable of handling your particular input
and output buffers.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/compress/Compression.java