public class ByteTransformer extends java.lang.Object implements ContentTransformer<byte[]>
ContentTransformer
to convert a byte array to ByteBuf
Modifier and Type | Field and Description |
---|---|
static ByteTransformer |
DEFAULT_INSTANCE |
Constructor and Description |
---|
ByteTransformer() |
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
call(byte[] toTransform,
io.netty.buffer.ByteBufAllocator allocator) |
public static final ByteTransformer DEFAULT_INSTANCE