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, setFileLocationgetColumns, isOptimizedLoading, setOptimizedLoadingpublic ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
boolean containsHeader)
fileLocation - ImportConfigurationFile.setFileLocation(String)containsHeader - containsHeaderpublic ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
boolean containsHeader)
fileLocation - ImportConfigurationFile.setFileLocation(String)charset - charsetdelimiter - #separatorcontainsHeader - containsHeaderpublic ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
char quote,
boolean containsHeader)
fileLocation - ImportConfigurationFile.setFileLocation(String)charset - charsetdelimiter - delimiterquote - quotecontainsHeader - containsHeaderpublic ImportConfigurationCSV(java.lang.String fileLocation,
java.nio.charset.Charset charset,
char delimiter,
char quote,
char escape,
boolean containsHeader)
fileLocation - ImportConfigurationFile.setFileLocation(String)charset - charsetdelimiter - delimiterquote - quoteescape - escapecontainsHeader - containsHeaderpublic 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 ImportConfigurationcolumn - A single column to import from, ImportColumnCSVpublic java.nio.charset.Charset getCharset()
public boolean getContainsHeader()
containsHeaderpublic char getDelimiter()
delimiterpublic char getEscape()
quotepublic char[] getLinebreak()
linebreakpublic int getMaxColumns()
public char getQuote()
quotepublic void setContainsHeader(boolean containsHeader)
containsHeader - containsHeader