Closes this file input stream and releases any system resources
associated with the stream.
<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 native resources is needed, other mechanisms such as
{@linkplain java.lang.ref.Cleaner} should be used.
Closes this file input stream and releases any system resources associated with the stream.
<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 native 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