Klasse ImportConfigurationCSV


public class ImportConfigurationCSV extends ImportConfigurationFile
Configuration describing a CSV file.
  • Konstruktordetails

    • ImportConfigurationCSV

      public ImportConfigurationCSV(String fileLocation, Charset charset, boolean containsHeader)
      Creates a new instance of this object.
      Parameter:
      fileLocation - ImportConfigurationFile.setFileLocation(String)
      containsHeader - containsHeader
    • ImportConfigurationCSV

      public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, boolean containsHeader)
      Creates a new instance of this object.
      Parameter:
      fileLocation - ImportConfigurationFile.setFileLocation(String)
      charset - charset
      delimiter -
      Ungültige Referenz
      #separator
      containsHeader - containsHeader
    • ImportConfigurationCSV

      public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, boolean containsHeader)
      Creates a new instance of this object.
      Parameter:
      fileLocation - ImportConfigurationFile.setFileLocation(String)
      charset - charset
      delimiter - delimiter
      quote - quote
      containsHeader - containsHeader
    • ImportConfigurationCSV

      public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, boolean containsHeader)
      Creates a new instance of this object.
      Parameter:
      fileLocation - ImportConfigurationFile.setFileLocation(String)
      charset - charset
      delimiter - delimiter
      quote - quote
      escape - escape
      containsHeader - containsHeader
    • ImportConfigurationCSV

      public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader)
      Creates a new instance of this object.
      Parameter:
      fileLocation - the file location
      charset - the charset
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      containsHeader - the contains header
    • ImportConfigurationCSV

      public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader, int maxColumns)
      Creates a new instance of this object.
      Parameter:
      fileLocation - the file location
      charset - the charset
      delimiter - the delimiter
      quote - the quote
      escape - the escape
      linebreak - the linebreak
      containsHeader - the contains header
      maxColumns -
  • Methodendetails

    • addColumn

      public void addColumn(ImportColumn column)
      Adds a single column to import from This makes sure that only ImportColumnCSV can be added, otherwise an IllegalArgumentException will be thrown.
      Angegeben von:
      addColumn in Klasse ImportConfiguration
      Parameter:
      column - A single column to import from, ImportColumnCSV
    • getCharset

      public Charset getCharset()
      Returns the charset of the CSV file.
      Gibt zurück:
    • getContainsHeader

      public boolean getContainsHeader()
      Gets the contains header.
      Gibt zurück:
      containsHeader
    • getDelimiter

      public char getDelimiter()
      Gets the delimiter.
      Gibt zurück:
      delimiter
    • getEscape

      public char getEscape()
      Gets the escape.
      Gibt zurück:
      quote
    • getLinebreak

      public char[] getLinebreak()
      Gets the linebreak.
      Gibt zurück:
      linebreak
    • getMaxColumns

      public int getMaxColumns()
      Returns max columns
      Gibt zurück:
    • getQuote

      public char getQuote()
      Gets the quote.
      Gibt zurück:
      quote
    • setContainsHeader

      public void setContainsHeader(boolean containsHeader)
      Sets the contains header.
      Parameter:
      containsHeader - containsHeader