Class AbstractCloseable

java.lang.Object
com.globalmentor.io.AbstractCloseable
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class AbstractCloseable extends Object implements Closeable
Abstract base implementation to facilitate implementation of Closeable.

This implementation ensures that Closeable.close() is idempotent by preventing the underlying close implementation from being called more than once.

Implementations must override closeImpl().

Author:
Garret Wilson