[ http://issues.apache.org/jira/browse/DIRMINA-145?page=all ]
Niklas Therning resolved DIRMINA-145:
-------------------------------------
Fix Version: 0.9.1
Resolution: Fixed
The filter StreamWriteFilter has been committed. Basically it allows you to
write InputStream objects using session.write(). The filter will take care of
reading the bytes from the stream, put them in a ByteBuffer and pass that
buffer along to the next filter. IoHandler.messageSent() won't be called until
all the bytes of the stream have been written. Bytes are read in 4k chunks from
the stream by default. This is configurable.
For now I haven't looked into the SwitchingIoHandler feature. Maybe it would be
better to open up a new issue for that?
> filter for writing streams
> --------------------------
>
> Key: DIRMINA-145
> URL: http://issues.apache.org/jira/browse/DIRMINA-145
> Project: Directory MINA
> Type: Improvement
> Reporter: Johannes Zillmann
> Assignee: Niklas Therning
> Fix For: 0.9.1
> Attachments: streamWriteFilter.zip
>
> a filter for easy stream writing would be usefull.
> I append a zip with that kind of filter.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira