Christopher Oliver wrote:
Why can't you just call "close()" in your flowscript? I don't see anything in the contract of processPipelineTo() that indicates that it should close the stream. In my opinion, calling "flush()" but not "close()" as in the original implementation is correct.

On second thought, yes, you're right. The OutputStream might be reused later, and if you call close() in the flow you miss that opportunity. I'm reverting the patch right now: next on the list is finding out why close() in flowscript was giving me problems, while putting it there solved everything. Probably something wrong in FileSource.


Thanks,

--
Gianugo Rabellino
Pro-netics s.r.l. -  http://www.pro-netics.com
Orixo, the XML business alliance - http://www.orixo.com
    (Now blogging at: http://blogs.cocoondev.org/gianugo/)



Reply via email to