public class ImportConfigurationCSV extends ImportConfigurationFile
Constructor and Description |
---|
ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
boolean containsHeader)
Creates a new instance of this object.
|
ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
boolean containsHeader)
Creates a new instance of this object.
|
ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
char quote,
boolean containsHeader)
Creates a new instance of this object.
|
ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
char quote,
char escape,
boolean containsHeader)
Creates a new instance of this object.
|
ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
char quote,
char escape,
char[] linebreak,
boolean containsHeader)
Creates a new instance of this object.
|
ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
char quote,
char escape,
char[] linebreak,
boolean containsHeader,
int maxColumns)
Creates a new instance of this object.
|
Modifier and Type | Method and Description |
---|---|
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. |
java.nio.charset.Charset |
getCharset()
Returns the charset of the CSV file.
|
boolean |
getContainsHeader()
Gets the contains header.
|
char |
getDelimiter()
Gets the delimiter.
|
char |
getEscape()
Gets the escape.
|
char[] |
getLinebreak()
Gets the linebreak.
|
int |
getMaxColumns()
Returns max columns
|
char |
getQuote()
Gets the quote.
|
void |
setContainsHeader(boolean containsHeader)
Sets the contains header.
|
getFileLocation, setFileLocation
getColumns, isOptimizedLoading, setOptimizedLoading
public ImportConfigurationCSV(java.lang.String fileLocation, java.nio.charset.Charset charset, boolean containsHeader)
fileLocation
- ImportConfigurationFile.setFileLocation(String)
containsHeader
- containsHeader
public ImportConfigurationCSV(java.lang.String fileLocation, java.nio.charset.Charset charset, char delimiter, boolean containsHeader)
fileLocation
- ImportConfigurationFile.setFileLocation(String)
charset
- charset
delimiter
- #separator
containsHeader
- containsHeader
public ImportConfigurationCSV(java.lang.String fileLocation, java.nio.charset.Charset charset, char delimiter, char quote, boolean containsHeader)
fileLocation
- ImportConfigurationFile.setFileLocation(String)
charset
- charset
delimiter
- delimiter
quote
- quote
containsHeader
- containsHeader
public ImportConfigurationCSV(java.lang.String fileLocation, java.nio.charset.Charset charset, char delimiter, char quote, char escape, boolean containsHeader)
fileLocation
- ImportConfigurationFile.setFileLocation(String)
charset
- charset
delimiter
- delimiter
quote
- quote
escape
- escape
containsHeader
- containsHeader
public ImportConfigurationCSV(java.lang.String fileLocation, java.nio.charset.Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader)
fileLocation
- the file locationcharset
- the charsetdelimiter
- the delimiterquote
- the quoteescape
- the escapelinebreak
- the linebreakcontainsHeader
- the contains headerpublic ImportConfigurationCSV(java.lang.String fileLocation, java.nio.charset.Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader, int maxColumns)
fileLocation
- the file locationcharset
- the charsetdelimiter
- the delimiterquote
- the quoteescape
- the escapelinebreak
- the linebreakcontainsHeader
- the contains headermaxColumns
- public void addColumn(ImportColumn column)
ImportColumnCSV
can be added, otherwise
an IllegalArgumentException
will be thrown.addColumn
in class ImportConfiguration
column
- A single column to import from, ImportColumnCSV
public java.nio.charset.Charset getCharset()
public boolean getContainsHeader()
containsHeader
public char getDelimiter()
delimiter
public char getEscape()
quote
public char[] getLinebreak()
linebreak
public int getMaxColumns()
public char getQuote()
quote
public void setContainsHeader(boolean containsHeader)
containsHeader
- containsHeader