- All Superinterfaces:
- AutoCloseable, Closeable, Iterator<T>
public interface CloseableIterator<T>
extends Iterator<T>, Closeable
An iterator that must be closed.
try (CloseableIterator iter = getIterator()) {
// do stuff
}
TODO will move to thredds.inventory in ver6