public class IteratorResourceClosing<T> extends Object implements Iterator<T>, Closeable
Closeable
or Closeable
resource when the iterator is exhausted. Alternatively, the resource will be closed when close()
is
called. An AtlasException
will be thrown if access is attempted after close()
has been called.Constructor and Description |
---|
IteratorResourceClosing(Iterator<T> iter,
Closeable resource) |
IteratorResourceClosing(Iterator<T> iter,
Closeable resource) |
Licenced under the Apache License, Version 2.0