Hello:

I'm using Apache Mina 2.0.7
I need to send a string to a peer
This string can be encoded in any chatset ( by configuration ) and I need
to send it in a buffered way ( I mean, store it in a buffer and flush it )


I've got to implement it with BufferedWriterFilter and works fine , but I
don't like to use an IoBuffer.
Id like to manage String objects ( not IoBuffers , bytes , arrays , etc )
But if I use BufferedWriterFilter , I need to pass it a IoBuffer
And I need to execute flush()  in the filter when I write the string to the
session
IMHO, it's a mess for writing a simple string

I can extend my own  BufferedWriterFilter and hide all these stuffs. And it
could be fine ,
 but I guess this case must be very usual , what is the best way to do it ?

Thanks and regards

Reply via email to