SnappyOutputStream
and
SnappyFramedOutputStream
.SnappyFramedInputStream
or
SnappyInputStream
should be used to decompress the content of source.AbstractSnappyInputStream.in
.InputStream
.AbstractSnappyInputStream.buffer
.ThreadLocal
contains a SoftReference
to a BufferRecycler
used to provide a low-cost
buffer recycling for buffers we need for encoding, decoding.InputStream
.OutputStream
.SnappyFramedInputStream
which implements
the standard x-snappy-framed
specification.SnappyFramedOutputStream
which implements
the standard x-snappy-framed
specification.AbstractSnappyInputStream.input
.AbstractSnappyInputStream.input
to read to.Calculates
the crc, compresses
the data, determines if the compression ratio is acceptable and calls
AbstractSnappyOutputStream.writeBlock(OutputStream, byte[], int, int, boolean, int)
to
actually write the frame.