Class CSVTargetTableSpec

java.lang.Object
com.orchestranetworks.addon.dint.dataconnector.spec.CSVTargetTableSpec

public final class CSVTargetTableSpec extends Object
Specification for a CSVTargetTable.
Since:
4.1.0
  • Method Details

    • newBuilder

      public static CSVTargetTableSpec.CSVTargetTableSpecBuilder newBuilder(File csvFile)
      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

      public File getFile()
      Returns either the CSV file or the archive file.
    • getCSVFilePath

      public String getCSVFilePath()
      Returns the path of either the individual CSV file or the CSV file inside the archive.
      Since:
      4.2.0
    • getFileEncoding

      public String getFileEncoding()
      Returns the CSV encoding.
    • isFirstRowHeader

      public boolean isFirstRowHeader()
      Returns true if the first row is the header.
    • getColumnHeaders

      public List<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.

    • isAlwaysDelimiter

      public final boolean isAlwaysDelimiter()