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