This is a reference documentation of the CSV file writer in hale studio. Usually you will not need this reference, as in hale studio the configuration of I/O providers is done via the respective wizards for import and export. Where this reference can come in handy is if you want launch a transformation via the command line.
| Name | CSV file |
|---|---|
| Identifier | eu.esdihumboldt.hale.io.csv.writer.instance |
| Implementation | eu.esdihumboldt.hale.io.csv.writer.internal.CSVInstanceWriter |
Following are the specific configuration parameters for this writer.
Use the source schema for the order and number of exported columns.
| Setting name | useSchema |
|---|---|
| Default value | true |
| Defaults to true |
Schema type which instances should be exported.
| Setting name | selectedExportType |
|---|---|
| Example value | {namespace}localname |
| The type name is represented like in the given example, with the namespace in curly braces. |
Separator character that delimits columns in the CSV file
| Setting name | separator |
|---|---|
| Defaults to tabulator (\t) |
Character used to quote CSV entries
| Setting name | quote |
|---|---|
| Default value | " |
Character used to escape special characters, e.g. the quote character
| Setting name | escape |
|---|---|
| Default value | \ |
The following configuration parameters are shared for all I/O providers.
During import the content type is tried to be auto-detected, for export this is not possible, but I/O providers may have a default content type associated. If an I/O provider only supports one content type, it's usually not necessary to set this parameter. In any case you can override the content type to use/assume using a content type identifier (see the list of supported content types at the bottom of the page).
| Setting name | contentType |
|---|---|
| Example value | eu.esdihumboldt.hale.io.csv |
Specifying a character encoding is important especially for the
import, so data is interpreted correctly. Not every I/O provider
may respect this setting though (e.g. if the encoding is given by
the data source).
Specify a character encoding by its name
as recognised by Java.
| Setting name | charset |
|---|---|
| Example value | UTF-8 |
eu.esdihumboldt.hale.io.csv)