eu.esdihumboldt.hale.io.shp.reader.internal
Class ShapeSchemaReader
java.lang.Object
eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider
eu.esdihumboldt.hale.common.core.io.impl.AbstractImportProvider
eu.esdihumboldt.hale.common.schema.io.impl.AbstractSchemaReader
eu.esdihumboldt.hale.io.shp.reader.internal.ShapeSchemaReader
- All Implemented Interfaces:
- ImportProvider, IOProvider, SchemaReader
public class ShapeSchemaReader
- extends AbstractSchemaReader
Reads a schema from a shapefile.
- Author:
- Thorsten Reitz, Simon Templer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeSchemaReader
public ShapeSchemaReader()
isCancelable
public boolean isCancelable()
- Description copied from interface:
IOProvider
- States if the execution of the provider is cancelable
- Returns:
- if the execution is cancelable
- See Also:
IOProvider.isCancelable()
getSchema
public Schema getSchema()
- Description copied from interface:
SchemaReader
- Get the loaded schema
- Returns:
- the schema
- See Also:
SchemaReader.getSchema()
execute
protected IOReport execute(ProgressIndicator progress,
IOReporter reporter)
throws IOProviderConfigurationException,
IOException
- Description copied from class:
AbstractIOProvider
- Execute the I/O provider.
- Specified by:
execute
in class AbstractIOProvider
- Parameters:
progress
- the progress indicatorreporter
- the reporter to use for the execution report
- Returns:
- the execution report
- Throws:
IOProviderConfigurationException
- if the I/O provider was not
configured properly
IOException
- if an I/O operation fails- See Also:
AbstractIOProvider.execute(ProgressIndicator, IOReporter)
getDefaultTypeName
protected String getDefaultTypeName()
- Description copied from class:
AbstractIOProvider
- Get the default type name if no content type is provided
- Specified by:
getDefaultTypeName
in class AbstractIOProvider
- Returns:
- the default content type
- See Also:
AbstractIOProvider.getDefaultTypeName()
readShapeType
public static TypeDefinition readShapeType(LocatableInputSupplier<? extends InputStream> source)
- Get the type definition from a Shapefile.
- Parameters:
source
- the Shapefile source
- Returns:
- the type definition or
null
in case reading the type
was not possible
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d