Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将 Netty ChannelBuffer 转换为 String 就像在 ChannelBuffer 上调用 .toString(UTF_8) 一样简单。如何从字符串创建 ChannelBuffer?
使用 ChannelBuffers.copiedBuffer(String, Charset)
在netty 4中,您可以使用Unpooled.copiedBuffer(String, Charset)
Unpooled.copiedBuffer(String, Charset)