DelimiterBasedFrameDecoder delimiter
Olivier ROLAND
olivier.roland at laposte.net
Fri Jun 24 03:45:06 EDT 2011
>
> Hi,
>
> Is it possible to have String delimiter in DelimiterBasedFrameDecoder? For
> example I want to have "\n\r" as delimiter. So if I have string line "hello
> world\n\r" I want to get one frame from DelimiterBasedFrameDecoder instead
> of two.
>
> Thanks
>
> Zlaja
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/DelimiterBasedFrameDecoder-delimiter-tp6510246p6510246.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
You can of course implement a custom delimiter if you really want \n\r in that order but are you sure ;-)
Use org.jboss.netty.buffer.ChannelBuffer.Delimiters as an example.
If you want to deal with standard \r\n see org.jboss.netty.example.telnet.TelnetServerPipelineFactory as an example.
More information about the netty-users
mailing list