public final class ByteBufUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
byteBuf2Bytes(io.netty.buffer.ByteBuf buf) |
static String |
byteBuf2String(Charset charset,
io.netty.buffer.ByteBuf... bufs) |
static String |
byteBuf2String(Charset charset,
io.netty.buffer.ByteBuf buf) |
static String |
byteBuf2StringDefault(Charset charset,
io.netty.buffer.ByteBuf... bufs) |
static boolean |
isUtf8OrUsAscii(Charset charset) |
public static boolean isUtf8OrUsAscii(Charset charset)
public static String byteBuf2StringDefault(Charset charset, io.netty.buffer.ByteBuf... bufs)
public static String byteBuf2String(Charset charset, io.netty.buffer.ByteBuf buf) throws CharacterCodingException
CharacterCodingExceptionpublic static String byteBuf2String(Charset charset, io.netty.buffer.ByteBuf... bufs) throws CharacterCodingException
CharacterCodingExceptionpublic static byte[] byteBuf2Bytes(io.netty.buffer.ByteBuf buf)
Copyright © 2017. All Rights Reserved.