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 バージョン 3 からバージョン 4 に移行しています。ハンドラーで文字列区切り文字を使用したいと考えています。Netty 4でこれを行うにはどうすればよいですか?
pipeline.addLast("frameDecoder", new DelimiterBasedFrameDecoder(8192, ChannelBuffers.wrappedBuffer("</message>".getBytes())));
以下を使用できます。
pipeline.addLast("frameDecoder", new DelimiterBasedFrameDecoder(8192, Unpooled.wrappedBuffer("</message>".getBytes())))