Constructing a Netty ChannelBuffer from a string
netty
Solution
Use ChannelBuffers.copiedBuffer(String, Charset)
Problem
To convert a Netty ChannelBuffer to a String is as simple as calling .toString(UTF_8) on the ChannelBuffer. How do I create a ChannelBuffer from a String?