public interface PointFeatureCollectionIterator extends java.io.Closeable, IOIterator<PointFeatureCollection>
try (PointFeatureCollectionIterator iter = getIter()) { while (iter.hasNext()) process(iter.next()); }
Modifier and Type | Interface and Description |
---|---|
static interface |
PointFeatureCollectionIterator.Filter
A filter on PointFeatureCollection.
|
Modifier and Type | Method and Description |
---|---|
default void |
close()
Make sure that the iterator is complete, and recover resources.
|
default void |
finish()
Deprecated.
use try-with-resource
|
boolean |
hasNext()
true if another PointFeatureCollection is available
|
PointFeatureCollection |
next()
Returns the next PointFeatureCollection
You must call hasNext() before calling next(), even if you know it will return true.
|
boolean hasNext() throws java.io.IOException
hasNext
in interface IOIterator<PointFeatureCollection>
java.io.IOException
- on i/o errorPointFeatureCollection next() throws java.io.IOException
next
in interface IOIterator<PointFeatureCollection>
java.io.IOException
- on i/o errordefault void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
default void finish()