Class CSVTargetTableSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dint.dataconnector.spec.CSVTargetTableSpec
-
public final class CSVTargetTableSpec extends java.lang.ObjectSpecification for aCSVTargetTable.- Since:
- 4.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCSVTargetTableSpec.CSVTargetTableSpecBuilderBuilder 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.StringgetCSVFilePath()Returns the path of either the individual CSV file or the CSV file inside the archive.chargetDelimiter()Returns the delimiter character.chargetFieldSeparator()Returns the field separator character.java.io.FilegetFile()Returns either the CSV file or the archive file.java.lang.StringgetFileEncoding()Returns the CSV encoding.chargetListSeparator()Returns the list separator character.booleanisFirstRowHeader()Returnstrueif the first row is the header.static CSVTargetTableSpec.CSVTargetTableSpecBuildernewBuilder(java.io.File csvFile)Creates a builder instance.static CSVTargetTableSpec.CSVTargetTableSpecBuildernewBuilderForArchive(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()
Returnstrueif 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.
-
-