> > Sica, David (David) wrote: >> Sorry, I should have provided more information but was in hurry to post the >> question. I'm using MINA 2.0.0-M6 with the TextLineCodecFactory and >> US-ASCII Charset. > '\0' is considered as a and of String in the TextLine codec. You should > use another codec if your incoming data contains such a byte. >
David, Emm has already answered your query. Your codec choice should be dependent on what your needs are. Or you can write your own. Its pretty easy. Here is the link to Codec Repository for MINA http://mina.apache.org/codec-repository.html May be browsing some of them shall give you a bright idea. -- thanks ashish Blog: http://www.ashishpaliwal.com/blog My Photo Galleries: http://www.pbase.com/ashishpaliwal