public interface CompressionCodec
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
decode(io.netty.buffer.ByteBuf encoded,
int uncompressedSize)
Decompress a buffer.
|
io.netty.buffer.ByteBuf |
encode(io.netty.buffer.ByteBuf raw)
Compress a buffer.
|
io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBuf raw)
raw - a buffer with the uncompressed content. The reader/writer indexes will not be modifiedio.netty.buffer.ByteBuf decode(io.netty.buffer.ByteBuf encoded,
int uncompressedSize)
throws IOException
The buffer needs to have been compressed with the matching Encoder.
encoded - the compressed contentuncompressedSize - the size of the original contentIOException - if the decompression failsCopyright © 2017–2021 Apache Software Foundation. All rights reserved.