CsvLoadOptions

Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject, com.groupdocs.conversion.options.load.LoadOptions, com.groupdocs.conversion.options.load.SpreadsheetLoadOptions

All Implemented Interfaces: java.io.Serializable

public final class CsvLoadOptions extends SpreadsheetLoadOptions implements Serializable

Options for loading Csv documents.

Constructors

Constructor Description
CsvLoadOptions() Initializes new instance of CsvLoadOptions class.

Methods

Method Description
getSeparator() Delimiter of a Csv file.
setSeparator(char value) Delimiter of a Csv file.
isMultiEncoded() True means the file contains several encodings.
setMultiEncoded(boolean value) True means the file contains several encodings.
hasFormula() Indicates whether text is formula if it starts with “=”.
setFormula(boolean value) Indicates whether text is formula if it starts with “=”.
getConvertNumericData() Indicates whether the string in the file is converted to numeric.
setConvertNumericData(boolean value) Indicates whether the string in the file is converted to numeric.
getConvertDateTimeData() Indicates whether the string in the file is converted to date.
setConvertDateTimeData(boolean value) Indicates whether the string in the file is converted to date.
getEncoding() Encoding.
getEncodingInternal()
setEncoding(Charset value) Encoding.
setEncodingInternal(System.Text.Encoding value)

CsvLoadOptions()

public CsvLoadOptions()

Initializes new instance of CsvLoadOptions class.

getSeparator()

public final char getSeparator()

Delimiter of a Csv file.

Returns: char

setSeparator(char value)

public final void setSeparator(char value)

Delimiter of a Csv file.

Parameters:

Parameter Type Description
value char

isMultiEncoded()

public final boolean isMultiEncoded()

True means the file contains several encodings.

Returns: boolean

setMultiEncoded(boolean value)

public final void setMultiEncoded(boolean value)

True means the file contains several encodings.

Parameters:

Parameter Type Description
value boolean

hasFormula()

public final boolean hasFormula()

Indicates whether text is formula if it starts with “=”.

Returns: boolean

setFormula(boolean value)

public final void setFormula(boolean value)

Indicates whether text is formula if it starts with “=”.

Parameters:

Parameter Type Description
value boolean

getConvertNumericData()

public final boolean getConvertNumericData()

Indicates whether the string in the file is converted to numeric. Default is True.

Returns: boolean

setConvertNumericData(boolean value)

public final void setConvertNumericData(boolean value)

Indicates whether the string in the file is converted to numeric. Default is True.

Parameters:

Parameter Type Description
value boolean

getConvertDateTimeData()

public final boolean getConvertDateTimeData()

Indicates whether the string in the file is converted to date. Default is True.

Returns: boolean

setConvertDateTimeData(boolean value)

public final void setConvertDateTimeData(boolean value)

Indicates whether the string in the file is converted to date. Default is True.

Parameters:

Parameter Type Description
value boolean

getEncoding()

public final Charset getEncoding()

Encoding. Default is Encoding.Default.

Returns: java.nio.charset.Charset

getEncodingInternal()

public System.Text.Encoding getEncodingInternal()

Returns: com.aspose.ms.System.Text.Encoding

setEncoding(Charset value)

public final void setEncoding(Charset value)

Encoding. Default is Encoding.Default.

Parameters:

Parameter Type Description
value java.nio.charset.Charset

setEncodingInternal(System.Text.Encoding value)

public void setEncodingInternal(System.Text.Encoding value)

Parameters:

Parameter Type Description
value com.aspose.ms.System.Text.Encoding