public final class ByteBufUtils extends Object
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 String |
byteBuf2UsAsciiString(io.netty.buffer.ByteBuf buf) |
static String |
byteBuf2Utf8String(io.netty.buffer.ByteBuf buf) |
public static String byteBuf2Utf8String(io.netty.buffer.ByteBuf buf) throws CharacterCodingException
CharacterCodingException
public static String byteBuf2UsAsciiString(io.netty.buffer.ByteBuf buf) throws CharacterCodingException
CharacterCodingException
public static String byteBuf2String(io.netty.buffer.ByteBuf buf, Charset charset) throws UTFDataFormatException, IndexOutOfBoundsException, CharacterCodingException
public static byte[] byteBuf2Bytes(io.netty.buffer.ByteBuf buf)
Copyright © 2016. All Rights Reserved.