public class CSVSchemaReader extends AbstractSchemaReader implements CSVConstants
Modifier and Type | Field and Description |
---|---|
static String[] |
firstLine
The first line of the CSV file
|
static String |
PARAM_PROPERTY
Name of the parameter specifying the property name
|
static String |
PARAM_PROPERTYTYPE
Name of the parameter specifying the property type
|
DEFAULT_ESCAPE, DEFAULT_QUOTE, DEFAULT_SEPARATOR, LOOKUP_KEY_COLUMN, LOOKUP_VALUE_COLUMN, PARAM_ESCAPE, PARAM_GEOMETRY, PARAM_QUOTE, PARAM_SEPARATOR, PARAM_SKIP_FIRST_LINE, PARAM_TYPENAME
PARAM_RESOURCE_ID, PARAM_SOURCE
PARAM_CHARSET, PARAM_CONTENT_TYPE
Constructor and Description |
---|
CSVSchemaReader() |
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
|
Schema |
getSchema()
Get the loaded schema
|
boolean |
isCancelable()
States if the execution of the provider is cancelable
|
void |
validate()
Validate the I/O provider configuration
|
getSharedTypes, setSharedTypes
createReporter, execute, generateResourceId, getResourceIdentifier, getSource, 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 String[] firstLine
public static final String PARAM_PROPERTY
public static final String PARAM_PROPERTYTYPE
public boolean isCancelable()
IOProvider
isCancelable
in interface IOProvider
IOProvider.isCancelable()
public Schema getSchema()
SchemaReader
getSchema
in interface SchemaReader
SchemaReader.getSchema()
public void validate() throws IOProviderConfigurationException
IOProvider
validate
in interface IOProvider
validate
in class AbstractImportProvider
IOProviderConfigurationException
- if the I/O provider was not
configured properlyAbstractIOProvider.validate()
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 String getDefaultTypeName()
AbstractIOProvider
getDefaultTypeName
in class AbstractIOProvider
AbstractIOProvider.getDefaultTypeName()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a