Reputation: 411
I'm migrating a system from Netty ver 3. to Ver 4. I would like to use a string delimiter in the handler. How do i do this in Netty 4?
pipeline.addLast("frameDecoder", new DelimiterBasedFrameDecoder(8192, ChannelBuffers.wrappedBuffer("</message>".getBytes())));
Upvotes: 3
Views: 1473
Reputation: 311
You can use the following:
pipeline.addLast("frameDecoder", new DelimiterBasedFrameDecoder(8192, Unpooled.wrappedBuffer("</message>".getBytes())))
Upvotes: 4