Class CSVTargetTableSpec


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

      • 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()
        Returns true 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.