Skip to content

Instantly share code, notes, and snippets.

@rokon12
Last active March 25, 2017 00:55
Show Gist options
  • Save rokon12/21c0a5a63607328042ab86c9bec4a713 to your computer and use it in GitHub Desktop.
Save rokon12/21c0a5a63607328042ab86c9bec4a713 to your computer and use it in GitHub Desktop.
package java.io;
import java.io.IOException;
public interface Closeable extends AutoCloseable {
/**
* Closes this stream and releases any system resources associated
* with it. If the stream is already closed then invoking this
* method has no effect.
*
* <p> As noted in {@link AutoCloseable#close()}, cases where the
* close may fail require careful attention. It is strongly advised
* to relinquish the underlying resources and to internally
* <em>mark</em> the {@code Closeable} as closed, prior to throwing
* the {@code IOException}.
*
* @throws IOException if an I/O error occurs
*/
public void close() throws IOException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment