org.geotools.data.wfs.v1_1_0.parsers
Class FeatureCollectionParser

Object
  extended by FeatureCollectionParser
All Implemented Interfaces:
WFSResponseParser

public class FeatureCollectionParser
extends Object
implements WFSResponseParser

A WFS response parser that parses a GetFeature response that did not return an ExceptionReport and is on GML 3.1 format into a GetFeatureParser in order to stream the features produced by the server.

Since:
2.6
Author:
Gabriel Roldan (OpenGeo)
See Also:
Gml31GetFeatureResponseParserFactory
Module:
modules/unsupported/wfs (gt-wfs.jar)

Constructor Summary
FeatureCollectionParser()
           
 
Method Summary
 Object parse(WFS_1_1_0_DataStore wfs, WFSResponse response)
          Produces a parsed object from the WFS response stream.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCollectionParser

public FeatureCollectionParser()
Method Detail

parse

public Object parse(WFS_1_1_0_DataStore wfs,
                    WFSResponse response)
             throws IOException
Description copied from interface: WFSResponseParser
Produces a parsed object from the WFS response stream.

The kind of parsed object depends on the actual response contents and what the specific parser produces for it.

Specified by:
parse in interface WFSResponseParser
Parameters:
wfs - the datastore that issued the request and obtained the given response
response - the handle to the WFS response contents
Returns:
a GetFeatureParser to stream the contents of the GML 3.1 response
Throws:
IOException - if an exception is produced while parsing the response


Copyright © 1996-2010 Geotools. All Rights Reserved.