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