public abstract class PointIteratorFromStructureData extends PointIteratorAbstract
Subclass must implement makeFeature() to turn the StructureData into a PointFeature.
PointFeatureIterator.FiltercalcBounds, info| Constructor and Description |
|---|
PointIteratorFromStructureData(StructureDataIterator structIter,
PointFeatureIterator.Filter filter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Make sure that the iterator is complete, and recover resources.
|
boolean |
hasNext()
Check if another PointFeature is available.
|
protected abstract PointFeature |
makeFeature(int recnum,
StructureData sdata) |
PointFeature |
next()
Returns the next PointFeature.
|
calcBounds, finishCalcBounds, setCalculateBoundsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic PointIteratorFromStructureData(StructureDataIterator structIter, PointFeatureIterator.Filter filter) throws IOException
structIter - original iteratorfilter - optional filterIOExceptionprotected abstract PointFeature makeFeature(int recnum, StructureData sdata) throws IOException
IOExceptionpublic boolean hasNext()
PointFeatureIterator
Since this iterator may be used in a for-each statement, implementations should close it the first
time this method returns false, as it may not get closed otherwise.
public PointFeature next()
PointFeatureIteratorpublic void close()
PointFeatureIterator