|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.geotools.feature.PipedFeatureIterator
public class PipedFeatureIterator
This class is a workaround since FeatureIterator
does not
implement Iterator
.
This class simply pipes all function calls to the FeatureIterator
specified in the constructor, but can be used with the Java standard
Iterator
interface.
Field Summary | |
---|---|
protected FeatureIterator |
fIter
Holds the FeatureIterator which is piped. |
Constructor Summary | |
---|---|
PipedFeatureIterator(FeatureIterator fIter)
Creates a new iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Checks whether a next element exists. |
Feature |
next()
Returns the next Feature; |
void |
remove()
Not supported, because the FeatureIterator does not
support this functionality. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FeatureIterator fIter
FeatureIterator
which is piped.
Constructor Detail |
---|
public PipedFeatureIterator(FeatureIterator fIter)
fIter
- FeatureIterator
which is pipedMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<Feature>
public Feature next()
next
in interface Iterator<Feature>
public void remove()
FeatureIterator
does not
support this functionality.
remove
in interface Iterator<Feature>
UnsupportedOperationException
- always
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |