org.geotools.feature
Class FeatureReaderIterator<F extends org.opengis.feature.Feature>

java.lang.Object
  extended by org.geotools.feature.FeatureReaderIterator<F>
All Implemented Interfaces:
java.util.Iterator<F>

public class FeatureReaderIterator<F extends org.opengis.feature.Feature>
extends java.lang.Object
implements java.util.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

Constructor Summary
FeatureReaderIterator(FeatureReader<? extends org.opengis.feature.type.FeatureType,F> reader)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 F next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureReaderIterator

public FeatureReaderIterator(FeatureReader<? extends org.opengis.feature.type.FeatureType,F> reader)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<F extends org.opengis.feature.Feature>

next

public F next()
Specified by:
next in interface java.util.Iterator<F extends org.opengis.feature.Feature>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<F extends org.opengis.feature.Feature>

close

public void close()


Copyright © 1996-2010 Geotools. All Rights Reserved.