org.geotools.feature
Class FeatureReaderIterator<F extends Feature>
Object
FeatureReaderIterator<F>
- All Implemented Interfaces:
- Iterator<F>
public class FeatureReaderIterator<F extends Feature>
- extends Object
- implements Iterator<F>
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 exeption a NoSuchElementException
will be thrown.
- Author:
- jeichar
- Module:
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureReaderIterator
public FeatureReaderIterator(FeatureReader<? extends FeatureType,F> reader)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<F extends Feature>
next
public F next()
- Specified by:
next
in interface Iterator<F extends Feature>
remove
public void remove()
- Specified by:
remove
in interface Iterator<F extends Feature>
close
public void close()
Copyright © 1996-2009 Geotools. All Rights Reserved.