|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFeatureReaderIterator<F>
public class FeatureReaderIterator<F extends Feature>
An iterator that wraps around a FeatureReader.
The Iterator's hasNext() will return false if the wrapped feature reader's hasNext method throws an exception. If next() throws an exception a NoSuchElementException will be thrown.
close()
shall be called before disposing the iterator. Before propagating an exception
from next()
or eating an exception from the underlying feature reader at
hasNext()
, this iterator will auto-close.
Constructor Summary | |
---|---|
FeatureReaderIterator(FeatureReader<? extends FeatureType,F> reader)
|
Method Summary | |
---|---|
void |
close()
Close the reader please. |
boolean |
hasNext()
|
F |
next()
|
void |
remove()
If this is a problem, a different iterator can be made based on FeatureWriter |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureReaderIterator(FeatureReader<? extends FeatureType,F> reader)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<F extends Feature>
public F next()
next
in interface Iterator<F extends Feature>
public void remove()
remove
in interface Iterator<F extends Feature>
public void close()
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |