Class PullParserFeatureReader

    • Constructor Detail

      • PullParserFeatureReader

        public PullParserFeatureReader​(Configuration wfsConfiguration,
                                       InputStream getFeatureResponseStream,
                                       FeatureType featureType,
                                       String axisOrder)
                                throws IOException
        Throws:
        IOException
      • PullParserFeatureReader

        public PullParserFeatureReader​(Configuration wfsConfiguration,
                                       InputStream getFeatureResponseStream,
                                       FeatureType featureType,
                                       String axisOrder,
                                       HTTPClient client)
                                throws IOException
        Initialise a feature reader with the used http client, to ensure reuse of the configuration.
        Throws:
        IOException
    • Method Detail

      • close

        public void close()
                   throws IOException
        Description copied from interface: GetParser
        Close the parser.
        Specified by:
        close in interface GetParser<SimpleFeature>
        Throws:
        IOException - Throws IOException if there was a problem closing the parser.
        See Also:
        GetParser.close()
      • getNumberOfFeatures

        public int getNumberOfFeatures()
        Description copied from interface: GetParser
        Returns the number of features if advertised by the server and the parser was able to get that information for example from the wfs:FeatureCollection "numberOfFeatures" xml attribute, or -1 if unknown.
        Specified by:
        getNumberOfFeatures in interface GetParser<SimpleFeature>
        Returns:
        number of features advertised by server, or -1 if unknown
        See Also:
        GetParser.getNumberOfFeatures()
      • setGeometryFactory

        public void setGeometryFactory​(GeometryFactory geometryFactory)
        Description copied from interface: GetParser
        Set the geometry factory.
        Specified by:
        setGeometryFactory in interface GetParser<SimpleFeature>
        Parameters:
        geometryFactory - The geometry factory to use.