public interface SimpleFeatureIterator extends FeatureIterator<SimpleFeature>
FeatureIterator.close()
after use.
This is an explicit interface for FeatureIterator Sample use:
SimpleFeatureIterator i = featureCollection.features()
try {
while( i.hasNext() ){
SimpleFeature feature = i.next();
}
}
finally {
i.close();
}
close, hasNext, next
Copyright © 1996–2019 Geotools. All rights reserved.