public class ShapeSchemaReader extends AbstractSchemaReader implements ShapefileConstants
AUGMENTED_PROPERTY_FILENAME, DEFAULT_TYPE_NAME, PARAM_TYPENAME, SHAPEFILE_AUGMENT_NS, SHAPEFILE_NS
PARAM_RESOURCE_ID, PARAM_SOURCE
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
ShapeSchemaReader() |
Modifier and Type | Method and Description |
---|---|
protected IOReport |
execute(ProgressIndicator progress,
IOReporter reporter)
Execute the I/O provider.
|
protected Charset |
getDefaultCharset()
Get the default character set.
This implementation returns UTF-8, may be overridden. |
protected String |
getDefaultTypeName()
Get the default type name if no content type is provided
|
Schema |
getSchema()
Get the loaded schema
|
boolean |
isCancelable()
States if the execution of the provider is cancelable
|
static TypeDefinition |
readShapeType(LocatableInputSupplier<? extends InputStream> source)
Get the type definition from a Shapefile.
|
getSharedTypes, setSharedTypes
createReporter, execute, generateResourceId, getResourceIdentifier, getSource, setParameter, setSource, storeConfiguration, validate
addSupportedParameter, fail, getCharset, getContentType, 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, validate
public boolean isCancelable()
IOProvider
isCancelable
in interface IOProvider
IOProvider.isCancelable()
public Schema getSchema()
SchemaReader
getSchema
in interface SchemaReader
SchemaReader.getSchema()
protected 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)
protected Charset getDefaultCharset()
AbstractIOProvider
getDefaultCharset
in class AbstractIOProvider
protected String getDefaultTypeName()
AbstractIOProvider
getDefaultTypeName
in class AbstractIOProvider
AbstractIOProvider.getDefaultTypeName()
public static TypeDefinition readShapeType(LocatableInputSupplier<? extends InputStream> source)
source
- the Shapefile sourcenull
in case reading the type
was not possibleBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a