Package ucar.nc2.util
Interface CloseableIterator<T>
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterator<T>
- All Known Implementing Classes:
MFileIterator
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