/** * Returns a {@link StreamFeatureCollection} that allows stream-based access to the members of the feature * collection that the cursor of the given <code>XMLStreamReader</code> points at. * <p> * This method does not automatically consume all events from the underlying XML stream. Instead, it allows the * caller to control the consumption by iterating over the features in the returned collection. * </p> * * @return deegree model representation for the current GML feature collection element, never <code>null</code> * @throws XMLStreamException * @throws XMLParsingException * @throws UnknownCRSException */ public StreamFeatureCollection readFeatureCollectionStream() throws XMLStreamException, XMLParsingException, UnknownCRSException { return getFeatureReader().getFeatureStream( xmlStream, defaultCRS ); }