org.geotools.data.wfs.protocol.wfs
Interface GetFeatureParser

All Known Implementing Classes:
XmlSimpleFeatureParser

public interface GetFeatureParser

Interface to abstract out the parsing of features coming from a GetFeature request from the underlying xml parsing technology in use.

Since:
2.5.x
Author:
Gabriel Roldan (TOPP)

Method Summary
 void close()
           
 int getNumberOfFeatures()
          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.
 SimpleFeature parse()
           
 

Method Detail

getNumberOfFeatures

int getNumberOfFeatures()
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.

Returns:
number of features advertised by server, or -1 if unknown

parse

SimpleFeature parse()
                    throws IOException
Returns:
the next feature in the stream or null if there are no more features to parse.
Throws:
IOException

close

void close()
           throws IOException
Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.