public interface PointFeatureCollectionIterator extends 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 IOException
hasNext in interface IOIterator<PointFeatureCollection>IOException - on i/o errorPointFeatureCollection next() throws IOException
next in interface IOIterator<PointFeatureCollection>IOException - on i/o errordefault void close()
close in interface AutoCloseableclose in interface Closeabledefault void finish()