Class CSVTargetTableSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dint.dataconnector.spec.CSVTargetTableSpec
-
public final class CSVTargetTableSpec extends java.lang.Object
Specification for aCSVTargetTable
.- Since:
- 4.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CSVTargetTableSpec.CSVTargetTableSpecBuilder
Builder for creating an instance ofCSVTargetTableSpec
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getColumnHeaders()
Returns the column headers.java.lang.String
getCSVFilePath()
Returns the path of either the individual CSV file or the CSV file inside the archive.char
getDelimiter()
Returns the delimiter character.char
getFieldSeparator()
Returns the field separator character.java.io.File
getFile()
Returns either the CSV file or the archive file.java.lang.String
getFileEncoding()
Returns the CSV encoding.char
getListSeparator()
Returns the list separator character.boolean
isFirstRowHeader()
Returnstrue
if the first row is the header.static CSVTargetTableSpec.CSVTargetTableSpecBuilder
newBuilder(java.io.File csvFile)
Creates a builder instance.static CSVTargetTableSpec.CSVTargetTableSpecBuilder
newBuilderForArchive(java.io.File archiveFile, java.lang.String csvFileName)
Creates a builder instance for a CSV file in an archive file.
-
-
-
Method Detail
-
newBuilder
public static CSVTargetTableSpec.CSVTargetTableSpecBuilder newBuilder(java.io.File csvFile)
Creates a builder instance.- Parameters:
csvFile
- The CSV target file.
-
newBuilderForArchive
public static CSVTargetTableSpec.CSVTargetTableSpecBuilder newBuilderForArchive(java.io.File archiveFile, java.lang.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
public java.io.File getFile()
Returns either the CSV file or the archive file.
-
getCSVFilePath
public java.lang.String getCSVFilePath()
Returns the path of either the individual CSV file or the CSV file inside the archive.- Since:
- 4.2.0
-
getFileEncoding
public java.lang.String getFileEncoding()
Returns the CSV encoding.
-
isFirstRowHeader
public boolean isFirstRowHeader()
Returnstrue
if the first row is the header.
-
getColumnHeaders
public java.util.List<java.lang.String> 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.
-
-