Package java.io
Interface Closeable
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DummyInputStream,DummyOutputStream,FlinkUARTInputStream,FlinkUARTOutputStream,InputStream,OutputStream,PrintStream,SCIInputStream,SCIOutputStream,UARTInputStream,UARTInputStream,UARTOutputStream,UARTOutputStream,UARTOutputStream
public interface Closeable extends AutoCloseable
AnAutoCloseablewhose close method may throw anIOException.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the object and release any system resources it holds.
-
-
-
Method Detail
-
close
void close() throws IOExceptionCloses the object and release any system resources it holds.Although only the first call has any effect, it is safe to call close multiple times on the same object. This is more lenient than the overridden
AutoCloseable.close(), which may be called at most once.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-