Package java.io
Interface Closeable
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AudioRecord,AudioTrack,BufferedImage,BufferedInputStream,BufferedOutputStream,BufferedReader,BufferedVectorImage,BufferedWriter,ByteArrayInputStream,ByteArrayOutputStream,ByteString.Output,CharArrayReader,ChunkedInputStream,ChunkedInputStream,ChunkedMessageBodyInputStream,ChunkedMessageBodyOutputStream,ChunkedOutputStream,DatagramSocket,DataInputStream,DataOutputStream,FileInputStream,FileOutputStream,FilterInputStream,FilterOutputStream,Formatter,HttpPart,IdentityMessageBodyInputStream,IdentityMessageBodyOutputStream,InputStream,InputStreamProxy,InputStreamReader,LimitedLengthInputStream,MLInferenceEngine,MulticastSocket,OutputStream,OutputStreamWriter,PipedInputStream,PipedOutputStream,PipedReader,PipedWriter,PosterOutputStream,PrintStream,PrintWriter,ProgressInputStream,PushbackInputStream,RandomAccessFile,Reader,ResourceBuffer,ResourceImage,ResourceVectorImage,SequenceInputStream,ServerSocket,Socket,SocketInputStream,SocketOutputStream,SSLServerSocket,SSLSocket,StringReader,StringWriter,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
-
-