|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.stream.CombinedFeatureInputStream
public class CombinedFeatureInputStream
FeatureInputStream
that encapsulates a sequence of FeatureInputStream
s.
Constructor Summary | |
---|---|
CombinedFeatureInputStream(Iterator<FeatureInputStream> resultSetIter)
Creates a new CombinedFeatureInputStream that is backed by the given FeatureInputStream . |
Method Summary | |
---|---|
void |
close()
Must be invoked after using to close underlying resources, e.g. |
int |
count()
Counts the remaining features in the stream (and consumes them) and closes it. |
Iterator<Feature> |
iterator()
|
FeatureCollection |
toCollection()
Returns all members of the FeatureInputStream as a FeatureCollection . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinedFeatureInputStream(Iterator<FeatureInputStream> resultSetIter)
CombinedFeatureInputStream
that is backed by the given FeatureInputStream
.
resultSetIter
- FeatureResultSet to back the result set, must not be null
Method Detail |
---|
public void close()
FeatureInputStream
ResultSet
s.
close
in interface FeatureInputStream
public FeatureCollection toCollection()
FeatureInputStream
FeatureInputStream
as a FeatureCollection
.
NOTE: This method should not be called for very large result sets, as it introduces the overhead of keeping all
created feature instances in memory. The returned collection will contain all Feature
s instances from the
current position in the iteration sequence.
toCollection
in interface FeatureInputStream
null
public Iterator<Feature> iterator()
iterator
in interface Iterable<Feature>
public int count()
FeatureInputStream
count
in interface FeatureInputStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |