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
AnAutoCloseable
whose close method may throw anIOException
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the object and release any system resources it holds.
-
-
-
Method Detail
-
close
void close() throws IOException
Closes 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:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-