java.lang.Object
com.aspose.words.CsvDataLoadOptions
public class CsvDataLoadOptions
- extends java.lang.Object
Represents options for parsing CSV data.
An instance of this class can be passed into constructors of CsvDataSource.
Constructor Summary |
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.
|
Property Getters/Setters Summary |
char | getCommentChar() | |
void | setCommentChar(char value) | |
|
Gets or sets the character that is used to comment lines of CSV data.
|
char | getDelimiter() | |
void | setDelimiter(char value) | |
|
Gets or sets the character to be used as a column delimiter.
|
boolean | hasHeaders() | |
void | hasHeaders(boolean value) | |
|
Gets or sets a value indicating whether the first record of CSV data contains column names.
|
char | getQuoteChar() | |
void | setQuoteChar(char value) | |
|
Gets or sets the character that is used to quote field values.
|
CsvDataLoadOptions
public CsvDataLoadOptions()
-
Initializes a new instance of this class with default options.
CsvDataLoadOptions
public CsvDataLoadOptions(boolean hasHeaders)
-
Initializes a new instance of this class with specifying whether CSV data contains column names
at the first line.
Property Getters/Setters Detail |
getCommentChar/setCommentChar | |
public char getCommentChar() / public void setCommentChar(char value)
|
-
Gets or sets the character that is used to comment lines of CSV data.
The default value is '#' (number sign).
getDelimiter/setDelimiter | |
public char getDelimiter() / public void setDelimiter(char value)
|
-
Gets or sets the character to be used as a column delimiter.
The default value is ',' (comma).
hasHeaders/hasHeaders | |
public boolean hasHeaders() / public void hasHeaders(boolean value)
|
-
Gets or sets a value indicating whether the first record of CSV data contains column names.
The default value is false.
getQuoteChar/setQuoteChar | |
public char getQuoteChar() / public void setQuoteChar(char value)
|
-
Gets or sets the character that is used to quote field values.
The default value is '"' (quotation mark).
Double the character to place it into quoted text.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.