public final class ByteBufUtils extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTY_BYTE_ARRAY |
Modifier and Type | Method and Description |
---|---|
static byte[] |
byteBuf2Bytes(io.netty.buffer.ByteBuf buf) |
static String |
byteBuf2String(io.netty.buffer.ByteBuf buf,
Charset charset) |
static byte[] |
byteBufs2Bytes(List<io.netty.buffer.ByteBuf> bufs) |
public static String byteBuf2String(io.netty.buffer.ByteBuf buf, Charset charset) throws UTFDataFormatException, IndexOutOfBoundsException, CharacterCodingException
public static byte[] byteBuf2Bytes(io.netty.buffer.ByteBuf buf)
public static byte[] byteBufs2Bytes(List<io.netty.buffer.ByteBuf> bufs)
Copyright © 2015. All Rights Reserved.