Closes this file output stream and releases any system resources
associated with this stream. This file output stream may no longer
be used for writing bytes.
<p> If this stream has an associated channel then the channel is closed
as well.
@apiNote
Overriding {@link #close} to perform cleanup actions is reliable
only when called directly or when called by try-with-resources.
Do not depend on finalization to invoke {@code close};
finalization is not reliable and is deprecated.
If cleanup of resources is needed, other mechanisms such as
{@linkplain java.lang.ref.Cleaner} should be used.
Closes this file output stream and releases any system resources associated with this stream. This file output stream may no longer be used for writing bytes.
<p> If this stream has an associated channel then the channel is closed as well.
@apiNote Overriding {@link #close} to perform cleanup actions is reliable only when called directly or when called by try-with-resources. Do not depend on finalization to invoke {@code close}; finalization is not reliable and is deprecated. If cleanup of resources is needed, other mechanisms such as {@linkplain java.lang.ref.Cleaner} should be used.
@exception IOException if an I/O error occurs.
@revised 1.4 @spec JSR-51