Package java.io
Interface Closeable
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
ExternalResourceService.Writer
- All Known Implementing Classes:
BufferedImage,BufferedVectorImage,ByteArrayInputStream,ByteArrayOutputStream,DataInputStream,DataOutputStream,FilterInputStream,FilterOutputStream,InputStream,InputStreamReader,OutputStream,OutputStreamWriter,PrintStream,Reader,ResourceBuffer,ResourceImage,ResourceVectorImage,VectorFont,Writer
public interface Closeable extends AutoCloseable
ACloseableis a source or destination of data that can be closed. The close method is invoked to release resources that the object is holding (such as open files).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes this stream and releases any system resources associated with it.
-
-
-
Method Detail
-
close
void close() throws IOExceptionCloses this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- if an I/O error occurs
-
-