On Mon, Jun 8, 2009 at 12:58 PM, conrad_<[email protected]> wrote: > > Also > > If it helps, when I remove the TextLine filter, the message that is received > from the client is in the form of: > > HeapBuffer[pos=0 lim=26 cap=2048: 74 65 73 74 2A 74 65 73 74 2A 30 30 34 39 > 39 39...] > > So the '74 65 73 74 2A ....' is the data that I require, is there a filter > that can parse this into text? >
You can write a filter on similar lines. It works like this 1. Read the bytes 2. Transform the bytes into Commands 3. Write to the ProtocolDecoderOutput 4. Perform operations in IoHandler refer sumup example (http://svn.apache.org/repos/asf/mina/trunk/example/src/main/java/org/apache/mina/example/sumup/) -- thanks ashish
