org.geotools.feature.collection
Class DelegateSimpleFeatureIterator

Object
  extended by DelegateFeatureIterator<SimpleFeature>
      extended by DelegateSimpleFeatureIterator
All Implemented Interfaces:
Closeable, SimpleFeatureIterator, FeatureIterator<SimpleFeature>

public class DelegateSimpleFeatureIterator
extends DelegateFeatureIterator<SimpleFeature>
implements SimpleFeatureIterator

A feature iterator that completely delegates to a normal Iterator, simply allowing Java 1.4 code to escape the caste (sic) system.

This implementation is not suitable for use with collections that make use of system resources. As an alterantive please see ResourceFetaureIterator.

Author:
Jody Garnett, Refractions Research, Inc.

Constructor Summary
DelegateSimpleFeatureIterator(FeatureCollection<SimpleFeatureType,SimpleFeature> collection, Iterator<SimpleFeature> iterator)
          Wrap the provided iterator up as a FeatureIterator.
DelegateSimpleFeatureIterator(Iterator<SimpleFeature> iterator)
          Wrap the provided iterator up as a FeatureIterator.
 
Method Summary
 
Methods inherited from class DelegateFeatureIterator
close, hasNext, next
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface FeatureIterator
close, hasNext, next
 

Constructor Detail

DelegateSimpleFeatureIterator

public DelegateSimpleFeatureIterator(Iterator<SimpleFeature> iterator)
Wrap the provided iterator up as a FeatureIterator.

Parameters:
iterator - Iterator to be used as a delegate.

DelegateSimpleFeatureIterator

public DelegateSimpleFeatureIterator(FeatureCollection<SimpleFeatureType,SimpleFeature> collection,
                                     Iterator<SimpleFeature> iterator)
Wrap the provided iterator up as a FeatureIterator.

Parameters:
iterator - Iterator to be used as a delegate.


Copyright © 1996-2014 Geotools. All Rights Reserved.