Class XmlComplexFeatureParser

Object
XmlFeatureParser<FeatureType,Feature>
XmlComplexFeatureParser
All Implemented Interfaces:
GetParser<Feature>

public class XmlComplexFeatureParser extends XmlFeatureParser<FeatureType,Feature>
Parses complex features from a WFS response input stream.
Author:
Adam Brown (Curtin University of Technology)
  • Constructor Details

    • 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 Details

    • 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