public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeUTF8(io.netty.buffer.ByteBuf in)
Decodes a string from a ByteBuf as a UTF8 charset.
|
static void |
encodeUTF8(String str,
io.netty.buffer.ByteBuf out)
Encodes a string as a UTF8 charset into a ByteBuf.
|
public static void encodeUTF8(String str, io.netty.buffer.ByteBuf out)
str - string to be encoded.out - ByteBuf where the string is encoded.public static String decodeUTF8(io.netty.buffer.ByteBuf in)
in - ByteBuf where the string was written.Copyright © 2024. All rights reserved.