public class StreamGmlReader extends AbstractInstanceReader
GZipEnabledImport.GZipInputSupplier
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_IGNORE_ROOT
The name of the parameter specifying if the root element should be
ignored and thus not be loaded as an instance.
|
static String |
PARAM_STRICT
The name of the parameter specifying if parsing of the XML instances
should happen strictly according to the schema or if also invalid
property paths will be allowed.
|
PARAM_RESOURCE_ID, PARAM_SOURCE
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
StreamGmlReader(boolean restrictToFeatures)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected IOReport |
execute(ProgressIndicator progress,
IOReporter reporter)
Execute the I/O provider.
|
protected String |
getDefaultTypeName()
Get the default type name if no content type is provided
|
InstanceCollection |
getInstances()
Get the instances
|
boolean |
isCancelable()
States if the execution of the provider is cancelable
|
getCrsProvider, getSourceSchema, setCRSProvider, setSourceSchema, validate
getSource
createReporter, execute, generateResourceId, getResourceIdentifier, setParameter, setSource, storeConfiguration
addSupportedParameter, fail, getCharset, getContentType, getDefaultCharset, getParameter, getSupportedParameters, getTypeName, loadConfiguration, setCharset, setContentType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceIdentifier, getSource, setSource
createReporter, execute, getCharset, getContentType, getParameter, getSupportedParameters, loadConfiguration, setCharset, setContentType, setParameter, storeConfiguration
public static final String PARAM_IGNORE_ROOT
true
.public static final String PARAM_STRICT
false
.public StreamGmlReader(boolean restrictToFeatures)
restrictToFeatures
- if only instances that are GML features shall
be loadedprotected IOReport execute(ProgressIndicator progress, IOReporter reporter) throws IOProviderConfigurationException, IOException
AbstractIOProvider
execute
in class AbstractIOProvider
progress
- the progress indicatorreporter
- the reporter to use for the execution reportIOProviderConfigurationException
- if the I/O provider was not
configured properlyIOException
- if an I/O operation failsAbstractIOProvider.execute(ProgressIndicator, IOReporter)
public InstanceCollection getInstances()
InstanceReader
InstanceReader.getInstances()
protected String getDefaultTypeName()
AbstractIOProvider
getDefaultTypeName
in class AbstractIOProvider
AbstractIOProvider.getDefaultTypeName()
public boolean isCancelable()
IOProvider
IOProvider.isCancelable()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a