public class ZlibTransformer extends Object
| Modifier and Type | Field and Description |
|---|---|
static ZlibTransformer |
ZLIB_TRANSFORMER |
| Constructor and Description |
|---|
ZlibTransformer(int zipBlockSize) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
transform(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input)
Encode raw input into encoded message.
|
io.netty.buffer.ByteBuf |
tryUntransform(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input,
int byteLimit)
Will try to un-transform until get at least minimumSize of byte of output or full output.
|
io.netty.buffer.ByteBuf |
untransform(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input)
Decode encoded input into original message.
|
public static final ZlibTransformer ZLIB_TRANSFORMER
public io.netty.buffer.ByteBuf transform(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input)
bufAllocator - allocator to allocate output byteBufinput - raw byteBuf inputpublic io.netty.buffer.ByteBuf untransform(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input)
bufAllocator - allocator to allocate output byteBufinput - encoded inputpublic io.netty.buffer.ByteBuf tryUntransform(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input,
int byteLimit)
bufAllocator - allocator to allocate output byteBufinput - encoded inputbyteLimit - try decode at least minimumSize of byte before stop.Copyright © 2012–2020. All rights reserved.