AutoCloseable
The interface with one method, close(), that every try-with-resources resource implements.
java.lang.AutoCloseable.close() throws Exception; its subinterface java.io.Closeable, implemented by readers and writers, narrows that to IOException.
See also