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(String value) 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.
setEncoding(String charsetName) Gets or sets the encoding that will be used when loading Txt document.
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(String value)

public final void setSeparator(String value)

Delimiter of a Csv file.

Parameters:

Parameter Type Description
value java.lang.String

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

setEncoding(String charsetName)

public final void setEncoding(String charsetName)

Gets or sets the encoding that will be used when loading Txt document. Can be null. Default is null.

Parameters:

Parameter Type Description
charsetName java.lang.String

setEncodingInternal(System.Text.Encoding value)

public void setEncodingInternal(System.Text.Encoding value)

Parameters:

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