|
|||||||||
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 |
iterator
Holds the FeatureIterator which is piped. |
Constructor Summary | |
---|---|
PipedFeatureIterator(
Creates a new iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Checks whether a next element exists. |
SimpleFeature |
next()
Returns the next SimpleFeature; |
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 |
---|
protectediterator
FeatureIterator
which is piped.
Constructor Detail |
---|
public PipedFeatureIterator(iterator)
iterator
- FeatureIterator
which is pipedMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<SimpleFeature>
public SimpleFeature next()
next
in interface Iterator<SimpleFeature>
public void remove()
FeatureIterator
does not
support this functionality.
remove
in interface Iterator<SimpleFeature>
UnsupportedOperationException
- always
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |