public class CompressionCodecZstd extends Object implements CompressionCodec
| Constructor and Description |
|---|
CompressionCodecZstd() |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
decode(io.netty.buffer.ByteBuf encoded,
int uncompressedLength)
Decompress a buffer.
|
io.netty.buffer.ByteBuf |
encode(io.netty.buffer.ByteBuf source)
Compress a buffer.
|
public io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBuf source)
CompressionCodecencode in interface CompressionCodecsource - a buffer with the uncompressed content. The reader/writer indexes will not be modifiedpublic io.netty.buffer.ByteBuf decode(io.netty.buffer.ByteBuf encoded,
int uncompressedLength)
throws IOException
CompressionCodecThe buffer needs to have been compressed with the matching Encoder.
decode in interface CompressionCodecencoded - the compressed contentuncompressedLength - the size of the original contentIOException - if the decompression failsCopyright © 2017–2021 Apache Software Foundation. All rights reserved.