Le 9/3/12 3:36 PM, daniel vettori a écrit :
Hi,
I m using Apache mina in my socket component. I used TextLineDecoder as my
sample for my Socket component. In my component i m using single delimiter
as end of message to/from socket. Now, i want to implement same thing with
multiple delimiters support.
Supposee i have message as (with delimiters ; : ,)
this;is:sample,
and output as
this
is
sample
So,how should i approach for this problem...
The best solution would be to write your own version of the
TextLinedecoer, a version accepting more than one delimiter.
Just have a look at the TexlineDecoder code, you should be able to
extend it to get what you need.
http://mina.apache.org/report/trunk/xref/org/apache/mina/filter/codec/textline/TextLineDecoder.html
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com