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 boolean
hasNext()
Deprecated.Returnstrue
if the iteration has more elements.T
next()
Deprecated.Returns the next element in the iteration.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws IOException
Deprecated.Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifnext()
would return an element rather than throwing an exception.)- Returns:
true
if 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
-
-