public interface Resource extends AutoCloseable
AutoCloseable that allows introspecting if it
already has been closed through its isOpen() method.
Additionally, calling AutoCloseable.close() twice is expected to fail
(i.e. is not idempotent).boolean isOpen()
void close()
close in interface AutoCloseableIllegalStateException - if already closedCopyright © 2017. All rights reserved.