mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Irving, Dave" <dave.irv...@logicacmg.com>
Subject RE: NIO and Fileaccess
Date Mon, 05 Jun 2006 10:28:00 GMT
Michael Bauroth wrote:


> The outgoing direction: In the same model sometimes it can 
> happen, that a client needs some data stored in a file. Here 
> I want to specify the file over a filechannel and redirect 
> the ByteBuffer data over the chain directly to the clients 
> (eventually using some of the filters to modify parts of the content).
> What do you think?

For the outgoing direction, I think DIRMINA-218 will cover this.
You'll be able to do session.writeFile(FileChannel).
I expect this will propogate through the filters, so you could, for

1) leave it to pass all the way through mina, ending up with Mina doing
a FileChannel#transferTo to the socket,
Or even
2) Intercept the writeFile call in a filter, read / transform, and issue
write(ByteBuffer) calls (if you wanted to modify the content in some

> Best Regards
> Michael


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.

View raw message