Are there any good examples of how one would use a BufferedWriteFilter. It seems that having to directly call 'flush' to get data to flush is somewhat of an ugly task, especially when one does not want to mixup protocol/filter boundaries in a hard-wired fashion.

Would creating a special 'message-data' object to send down the line for 'flush' make sense? It would seem that this could also carry-over to other filters that might either hold-back data or chunk data different than a given protocol expects (ex: SSL, compression, etc). Being that the BufferedWriteFilter is 'final' a wrapper-class could be written to accept a flush request and just directly filter into the BufferedWriteFilter.

... in the future, this wrapper-class could work as a more official decorator for Filters that are Flushable.

Any thoughts/ideas?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to