Class XmlComplexFeatureParser
- Object
-
- XmlFeatureParser<FeatureType,Feature>
-
- XmlComplexFeatureParser
-
public class XmlComplexFeatureParser extends XmlFeatureParser<FeatureType,Feature>
Parses complex features from a WFS response input stream.- Author:
- Adam Brown (Curtin University of Technology)
-
-
Field Summary
-
Fields inherited from class XmlFeatureParser
parser, targetType
-
-
Constructor Summary
Constructors Constructor Description XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName)
Initialises a new instance of the XmlComplexFeature class.XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter)
Initialises a new instance of the XmlComplexFeature class.XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter, WFSStrategy strategy)
Initialises a new instance of the XmlComplexFeature class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Feature
parse()
Search for and parse the next feature.void
setFilter(Filter filter)
Sets a filter that is evaluated against the returned features.-
Methods inherited from class XmlFeatureParser
close, getFeatureType, getNumberOfFeatures, parseAttributeValue, seekFeature, setGeometryFactory
-
-
-
-
Constructor Detail
-
XmlComplexFeatureParser
public XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName) throws IOException
Initialises a new instance of the XmlComplexFeature class.- Parameters:
getFeatureResponseStream
- the input stream of the WFS response.targetType
- The feature type of the WFS response.featureDescriptorName
- The name of the feature descriptor.- Throws:
IOException
-
XmlComplexFeatureParser
public XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter) throws IOException
Initialises a new instance of the XmlComplexFeature class.- Parameters:
getFeatureResponseStream
- the input stream of the WFS response.targetType
- The feature type of the WFS response.featureDescriptorName
- The name of the feature descriptor.filter
- Filter to apply to the features.- Throws:
IOException
-
XmlComplexFeatureParser
public XmlComplexFeatureParser(InputStream getFeatureResponseStream, FeatureType targetType, QName featureDescriptorName, Filter filter, WFSStrategy strategy) throws IOException
Initialises a new instance of the XmlComplexFeature class.- Parameters:
getFeatureResponseStream
- the input stream of the WFS response.targetType
- The feature type of the WFS response.featureDescriptorName
- The name of the feature descriptor.filter
- Filter to apply to the features.strategy
- Which WFS version to use- Throws:
IOException
-
-
Method Detail
-
setFilter
public void setFilter(Filter filter)
Sets a filter that is evaluated against the returned features.
-
parse
public Feature parse() throws IOException
Search for and parse the next feature.- Returns:
- the next feature in the stream or
null
if there are no more features to parse. - Throws:
IOException
-
-