Last active
March 25, 2017 00:55
-
-
Save rokon12/21c0a5a63607328042ab86c9bec4a713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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