public class CsvDataLoadOptions
extends java.lang.Object
CsvDataSource
.Constructor and Description |
---|
CsvDataLoadOptions()
Initializes a new instance of this class with default options.
|
CsvDataLoadOptions(boolean hasHeaders)
Initializes a new instance of this class with specifying whether CSV data contains column names at the first line.
|
Modifier and Type | Method and Description |
---|---|
char |
getCommentChar()
Gets the character that is used to comment lines of CSV data.
|
char |
getDelimiter()
Gets the character to be used as a column delimiter.
|
char |
getQuoteChar()
Gets the character that is used to quote field values.
|
boolean |
hasHeaders()
Gets a value indicating whether the first line of CSV data contains column names.
|
void |
hasHeaders(boolean value)
Sets a value indicating whether the first line of CSV data contains column names.
|
void |
setCommentChar(char value)
Sets the character that is used to comment lines of CSV data.
|
void |
setDelimiter(char value)
Sets the character to be used as a column delimiter.
|
void |
setQuoteChar(char value)
Sets the character that is used to quote field values.
|
public CsvDataLoadOptions()
public CsvDataLoadOptions(boolean hasHeaders)
public boolean hasHeaders()
public void hasHeaders(boolean value)
value
- A value indicating whether the first line of CSV data contains column names.public char getDelimiter()
public void setDelimiter(char value)
value
- The character to be used as a column delimiter.public char getQuoteChar()
The default value is '"' (quotation mark).
Double the character to place it into quoted text.
public void setQuoteChar(char value)
The default value is '"' (quotation mark).
Double the character to place it into quoted text.
value
- The character that is used to quote field values.public char getCommentChar()
public void setCommentChar(char value)
value
- The character that is used to comment lines of CSV data.