Package ucar.nc2.util
Interface IOIterator<T>
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
PointFeatureCCIterator,PointFeatureCollectionIterator
- All Known Implementing Classes:
PointCollectionIteratorFiltered,PointFeatureCCIteratorFiltered,StationProfileCollectionImpl.NestedCollectionIOIteratorAdapter
@Deprecated public interface IOIterator<T> extends Closeable
Deprecated.will move in ver6A Closeable Iterator that can throw an IOException
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanhasNext()Deprecated.Returnstrueif the iteration has more elements.Tnext()Deprecated.Returns the next element in the iteration.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws IOExceptionDeprecated.Returnstrueif the iteration has more elements. (In other words, returnstrueifnext()would return an element rather than throwing an exception.)- Returns:
trueif the iteration has more elements- Throws:
IOException- on read error
-
next
T next() throws IOException
Deprecated.Returns the next element in the iteration.- Returns:
- the next element in the iteration
- Throws:
IOException- on read errorNoSuchElementException- if the iteration has no more elements
-
-