class SnappyCompressor extends Compressor
BUFFER_SIZE| Constructor and Description |
|---|
SnappyCompressor() |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(java.util.List<ByteBuf> source,
BsonOutput target) |
private void |
copy(java.util.List<ByteBuf> source,
byte[] in) |
byte |
getId() |
(package private) java.io.InputStream |
getInputStream(java.io.InputStream source) |
java.lang.String |
getName() |
private int |
getUncompressedSize(java.util.List<ByteBuf> source) |
getOutputStream, uncompresspublic java.lang.String getName()
getName in class Compressorpublic byte getId()
getId in class Compressorpublic void compress(java.util.List<ByteBuf> source, BsonOutput target)
compress in class Compressorprivate int getUncompressedSize(java.util.List<ByteBuf> source)
private void copy(java.util.List<ByteBuf> source, byte[] in)
java.io.InputStream getInputStream(java.io.InputStream source)
throws java.io.IOException
getInputStream in class Compressorjava.io.IOException