com.aspose.words

Class CsvDataLoadOptions

  • 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(booleanhasHeaders)
Initializes a new instance of this class with specifying whether CSV data contains column names at the first line.
 
Property Getters/Setters Summary
chargetCommentChar()
void
setCommentChar(charvalue)
           Gets or sets the character that is used to comment lines of CSV data.
chargetDelimiter()
void
setDelimiter(charvalue)
           Gets or sets the character to be used as a column delimiter.
booleanhasHeaders()
void
hasHeaders(booleanvalue)
           Gets or sets a value indicating whether the first record of CSV data contains column names.
chargetQuoteChar()
void
setQuoteChar(charvalue)
           Gets or sets the character that is used to quote field values.
 

    • Constructor Detail

      • 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.