Knut Anders Hatlen (JIRA) wrote:
>> But the behaviour that needs to be exhibited for
>> InputStream/OutputStream
>> methods after close was not mentioned.
>
> I found this the javadoc for OutputStream.write(int):
> IOException - if an I/O error occurs. In particular, an IOException
> may be thrown if the output stream has been closed.
I do not think that this means that it is required behavior. At
least, the javadoc for java.io.ByteArrayOutputStream indicates that
not all OutputStreams behave that way:
Closing a ByteArrayOutputStream has no effect. The methods in this
class can be called after the stream has been closed without
generating an IOException.
--
Øystein