Class CSVTargetTableSpec
java.lang.Object
com.orchestranetworks.addon.dint.dataconnector.spec.CSVTargetTableSpec
Specification for a
CSVTargetTable
.- Since:
- 4.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder for creating an instance ofCSVTargetTableSpec
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the column headers.Returns the path of either the individual CSV file or the CSV file inside the archive.char
Returns the delimiter character.char
Returns the field separator character.getFile()
Returns either the CSV file or the archive file.Returns the CSV encoding.char
Returns the list separator character.final boolean
boolean
Returnstrue
if the first row is the header.newBuilder
(File csvFile) Creates a builder instance.newBuilderForArchive
(File archiveFile, String csvFileName) Creates a builder instance for a CSV file in an archive file.
-
Method Details
-
newBuilder
Creates a builder instance.- Parameters:
csvFile
- The CSV target file.
-
newBuilderForArchive
public static CSVTargetTableSpec.CSVTargetTableSpecBuilder newBuilderForArchive(File archiveFile, String csvFileName) Creates a builder instance for a CSV file in an archive file.- Parameters:
archiveFile
- The archive file.csvFileName
- The name of the CSV target file.- Since:
- 4.2.0
-
getFile
Returns either the CSV file or the archive file. -
getCSVFilePath
Returns the path of either the individual CSV file or the CSV file inside the archive.- Since:
- 4.2.0
-
getFileEncoding
Returns the CSV encoding. -
isFirstRowHeader
public boolean isFirstRowHeader()Returnstrue
if the first row is the header. -
getColumnHeaders
Returns the column headers. -
getFieldSeparator
public char getFieldSeparator()Returns the field separator character.Returns semicolon (
;
) by default. -
getListSeparator
public char getListSeparator()Returns the list separator character.Returns line-break by default.
-
getDelimiter
public char getDelimiter()Returns the delimiter character.Returns double-quote (
"
) by default. -
isAlwaysDelimiter
public final boolean isAlwaysDelimiter()
-