|
GeoAPI 2.0 Build 2005-06-08 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FeatureIterator
Extends the Iterator interface to include a close method
for cleaning up connections to a persistent store.
| Method Summary | |
|---|---|
void |
close()
If applicable, closes any connection to a persistent store that backs this iterator. |
boolean |
hasNext()
Method inherited from Iterator that indicates whether there's another feature available. |
Feature |
next()
Method inherited from Iterator that returns the next Feature object from
the iterator. |
void |
remove()
If supported by the underlying FeatureCollection, invoking this method
will remove the last Feature returned by next(). |
| Method Detail |
|---|
boolean hasNext()
throws BackingStoreException
Because no exceptions are thrown in the Iterator interface, any I/O
exceptions that occur while executing this method must be wrapped in
a BackingStoreException before being thrown.
hasNext in interface Iterator<Feature>BackingStoreException - If an error occurs while fetching the feature.
Feature next()
throws BackingStoreException
Feature object from
the iterator.
Because no exceptions are thrown in the Iterator interface, any I/O
exceptions that occur while executing this method must be wrapped in
a BackingStoreException before being thrown.
next in interface Iterator<Feature>BackingStoreException - If an error occurs while fetching the feature.
void remove()
throws UnsupportedOperationException,
BackingStoreException
FeatureCollection, invoking this method
will remove the last Feature returned by next().
remove in interface Iterator<Feature>UnsupportedOperationException - If removing items is not supported
by the underlying collection.
BackingStoreException - If an error occurs while removing the feature.
void close()
throws IOException
IOException - if an error occurs while closing the iterator.
|
GeoAPI 2.0 Build 2005-06-08 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
|
Symbols, terms and definitions | Copyright OpenGIS® Consortium |