public interface CompressionCodec
Modifier and Type | Interface and Description |
---|---|
static class |
CompressionCodec.Modifier |
Modifier and Type | Method and Description |
---|---|
boolean |
compress(ByteBuffer in,
ByteBuffer out,
ByteBuffer overflow)
Compress the in buffer to the out buffer.
|
void |
decompress(ByteBuffer in,
ByteBuffer out)
Decompress the in buffer to the out buffer.
|
CompressionCodec |
modify(EnumSet<CompressionCodec.Modifier> modifiers)
Produce a modified compression codec if the underlying algorithm allows
modification.
|
boolean compress(ByteBuffer in, ByteBuffer out, ByteBuffer overflow) throws IOException
in
- the bytes to compressout
- the uncompressed bytesoverflow
- put any additional bytes hereIOException
void decompress(ByteBuffer in, ByteBuffer out) throws IOException
in
- the bytes to decompressout
- the decompressed bytesIOException
CompressionCodec modify(@Nullable EnumSet<CompressionCodec.Modifier> modifiers)
modifiers
- compression modifiersCopyright © 2017 The Apache Software Foundation. All rights reserved.