Feedback and comments on ARM proposal - resend

Florian Weimer fw at
Wed Mar 18 13:45:40 PDT 2009

* Reinier Zwitserloot:

> The general feeling that close() throwing IOExceptions is just plain  
> stupid comes from *INPUTSTREAM*, where your inputstream reading has  
> not thrown any exceptions, and has therefore, by neccessity, read all  
> files and hit the EOF (or whatever other 'I don't need more data'  
> marker you're using) without error.

This requires quite a few library changes because currently, an
InputStream created for a ReadableByteChannel which happens to be a
WritableByteChannel as well closes both personae of the channel when
the input stream's close method is invoked.  You'd have to change
that, or you still end up encountering exceptions during close.

More information about the coin-dev mailing list