CsvLoadOptions
Leave feedback
On this page
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.
| Constructor | Description |
|---|---|
| CsvLoadOptions() | Initializes new instance of CsvLoadOptions class. |
| 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) |
public CsvLoadOptions()
Initializes new instance of CsvLoadOptions class.
public final char getSeparator()
Delimiter of a Csv file.
Returns: char
public final void setSeparator(String value)
Delimiter of a Csv file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final void setSeparator(char value)
Delimiter of a Csv file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | char |
public final boolean isMultiEncoded()
True means the file contains several encodings.
Returns: boolean
public final void setMultiEncoded(boolean value)
True means the file contains several encodings.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
public final boolean hasFormula()
Indicates whether text is formula if it starts with “=”.
Returns: boolean
public final void setFormula(boolean value)
Indicates whether text is formula if it starts with “=”.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
public final boolean getConvertNumericData()
Indicates whether the string in the file is converted to numeric. Default is True.
Returns: boolean
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 |
public final boolean getConvertDateTimeData()
Indicates whether the string in the file is converted to date. Default is True.
Returns: boolean
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 |
public final Charset getEncoding()
Encoding. Default is Encoding.Default.
Returns: java.nio.charset.Charset
public System.Text.Encoding getEncodingInternal()
Returns: com.aspose.ms.System.Text.Encoding
public final void setEncoding(Charset value)
Encoding. Default is Encoding.Default.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.nio.charset.Charset |
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 |
public void setEncodingInternal(System.Text.Encoding value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.ms.System.Text.Encoding |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.