public final class Encoders extends Object
| Constructor and Description |
|---|
Encoders() |
| Modifier and Type | Method and Description |
|---|---|
static io.netty.buffer.ByteBuf |
compress(io.netty.buffer.ByteBuf src,
boolean pooled)
Encodes the given
ByteBuf |
static void |
compress(io.netty.buffer.ByteBuf src,
io.netty.buffer.ByteBuf dst)
Encodes the given
ByteBuf |
static void |
compress(io.netty.buffer.ByteBuf src,
io.netty.buffer.ByteBuf dst,
Encoder.Parameters params)
Encodes the given
ByteBuf |
static void |
compress(ByteBuffer src,
ByteBuffer dst)
Encodes the given
ByteBuffer |
static void |
compress(ByteBuffer src,
ByteBuffer dst,
Encoder.Parameters params)
Encodes the given
ByteBuffer |
public static io.netty.buffer.ByteBuf compress(io.netty.buffer.ByteBuf src,
boolean pooled)
throws IOException
ByteBufsrc - ByteBuf sourcepooled - If set to true then this method will return
PooledDirectByteBuf else UnpooledDirectByteBufpooled is set to true then this method will return
PooledDirectByteBuf else UnpooledDirectByteBufIOException - Thrown in case of error during encodingpublic static void compress(io.netty.buffer.ByteBuf src,
io.netty.buffer.ByteBuf dst)
throws IOException
ByteBufsrc - ByteBuf sourcedst - ByteBuf destinationIOException - Thrown in case of error during encodingpublic static void compress(ByteBuffer src, ByteBuffer dst) throws IOException
ByteBuffersrc - ByteBuffer sourcedst - ByteBuffer destinationIOException - Thrown in case of error during encodingpublic static void compress(ByteBuffer src, ByteBuffer dst, Encoder.Parameters params) throws IOException
ByteBuffersrc - ByteBuffer sourcedst - ByteBuffer destinationparams - Encoder.Parameters instanceIOException - Thrown in case of error during encodingpublic static void compress(io.netty.buffer.ByteBuf src,
io.netty.buffer.ByteBuf dst,
Encoder.Parameters params)
throws IOException
ByteBufsrc - ByteBuffer sourcedst - ByteBuffer destinationparams - Encoder.Parameters instanceIOException - Thrown in case of error during encodingCopyright © 2024. All rights reserved.