Package com.helger.commons.state
Interface ICloseable
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface ICloseable extends Closeable
Interface of an object, which may be closed and can be checked if it is closed.- Since:
- 9.0.0
- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the object.booleanisClosed()Returns, whether the object is already closed.
-
-
-
Method Detail
-
isClosed
boolean isClosed() throws IOExceptionReturns, whether the object is already closed.- Returns:
true, if the object is closed,falseotherwise.- Throws:
IOException- An I/O error occurred.
-
close
void close() throws IOExceptionCloses the object.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- An I/O error occurred.
-
-