org.geotools.feature
Class FeatureReaderIterator

java.lang.Object
  extended byorg.geotools.feature.FeatureReaderIterator
All Implemented Interfaces:
java.util.Iterator

public class FeatureReaderIterator
extends java.lang.Object
implements java.util.Iterator

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 reader)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 java.lang.Object 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 reader)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

close

public void close()


Copyright © GeoTools. All Rights Reserved.