Getting string from netty ByteBuf
<p>How can I get the string from a netty <code>ByteBuf</code>? As of now I am able to get it character by character. Is there a way to get the string object directly?</p>

<pre><code>// message is of type ByteBuf
for (int i = 0; i &lt; message.capacity(); i++) {
    byte b = message.payload().getByte(i);
    System.out.print((char) b);
}
</code></pre>