jdk/src/share/classes/java/io/Closeable.java
changeset 21307 d9d1ad598db1
parent 15647 314007859004
equal deleted inserted replaced
21306:e56a970409e5 21307:d9d1ad598db1
    32  * The close method is invoked to release resources that the object is
    32  * The close method is invoked to release resources that the object is
    33  * holding (such as open files).
    33  * holding (such as open files).
    34  *
    34  *
    35  * @since 1.5
    35  * @since 1.5
    36  */
    36  */
    37 @FunctionalInterface
       
    38 public interface Closeable extends AutoCloseable {
    37 public interface Closeable extends AutoCloseable {
    39 
    38 
    40     /**
    39     /**
    41      * Closes this stream and releases any system resources associated
    40      * Closes this stream and releases any system resources associated
    42      * with it. If the stream is already closed then invoking this
    41      * with it. If the stream is already closed then invoking this