Is there a way to convert a netty ByteBuf to a String and vice versa?
public String toString(ByteBuf b){ //return b enconded to a String } public Bytebuf
You can create a ByteBuf from a String with Unpooled.copiedBuffer(String, Charset).
ByteBuf
Unpooled.copiedBuffer(String, Charset)