public interface Closeable extends Closeable
void close()
throws IOException
close 在接口中 AutoCloseableclose 在接口中 CloseableIOException - An I/O error occurred.boolean isClosed()
throws IOException
IOException - An I/O error occurred.