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
- Version:
- $Id: GetFeatureParser.java 31824 2008-11-11 19:22:41Z groldan $
- 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. |
org.opengis.feature.simple.SimpleFeature |
parse()
|
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
org.opengis.feature.simple.SimpleFeature parse()
throws java.io.IOException
- Returns:
- the next feature in the stream or
null
if there are no more features to
parse.
- Throws:
java.io.IOException
close
void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 1996-2010 Geotools. All Rights Reserved.