该接口位于java.io包下,声明如下:public interface Closeable extends AutoCloseable。关闭流并释放与该流关联的所有系统资源。如果已经关闭该流,则调用此方法无效。
方法:
1 public void close() throws IOException;
参考资料
java中的Closeable接口