public final class DelimitedTextEditOptions extends Object implements IEditOptions
Options for loading text-based Spreadsheet documents (CSV, Tab-based etc.), that use a separator (delimiter)
Constructor and Description |
---|
DelimitedTextEditOptions(String separator)
Creates an instance of options class for delimited text with mandatory
separator (delimiter)
|
Modifier and Type | Method and Description |
---|---|
boolean |
getConvertDateTimeData()
Gets or sets a value that indicates whether the string in text-based
document is converted to the date data.
|
boolean |
getConvertNumericData()
Gets or sets a value that indicates whether the string in text-based
document is converted to numeric data.
|
boolean |
getOptimizeMemoryUsage()
Enables memory optimization mechanisms during input document processing,
which may degrade performance in some special cases, but on the other
hand decrease memory usage.
|
String |
getSeparator()
Allows to specify a string separator (delimiter) for text-based
Spreadsheet documents
|
boolean |
getTreatConsecutiveDelimitersAsOne()
Defines whether consecutive delimiters should be treated as one.
|
void |
setConvertDateTimeData(boolean value)
Gets or sets a value that indicates whether the string in text-based
document is converted to the date data.
|
void |
setConvertNumericData(boolean value)
Gets or sets a value that indicates whether the string in text-based
document is converted to numeric data.
|
void |
setOptimizeMemoryUsage(boolean value)
Enables memory optimization mechanisms during input document processing,
which may degrade performance in some special cases, but on the other
hand decrease memory usage.
|
void |
setSeparator(String value)
Allows to specify a string separator (delimiter) for text-based
Spreadsheet documents
|
void |
setTreatConsecutiveDelimitersAsOne(boolean value)
Defines whether consecutive delimiters should be treated as one.
|
public DelimitedTextEditOptions(String separator)
Creates an instance of options class for delimited text with mandatory separator (delimiter)
separator
- Mandatory separator (delimiter), that cannot be NULL or
emptypublic final boolean getConvertDateTimeData()
Gets or sets a value that indicates whether the string in text-based document is converted to the date data. Default is false.
public final boolean getConvertNumericData()
Gets or sets a value that indicates whether the string in text-based document is converted to numeric data. Default is false.
public final boolean getOptimizeMemoryUsage()
Enables memory optimization mechanisms during input document processing, which may degrade performance in some special cases, but on the other hand decrease memory usage. Useful when processing huge documents and facing OutOfMemoryException. Default is false (memory optimization is disabled for the sake of better performance).
public final String getSeparator()
Allows to specify a string separator (delimiter) for text-based Spreadsheet documents
public final boolean getTreatConsecutiveDelimitersAsOne()
Defines whether consecutive delimiters should be treated as one. By default is false.
public final void setConvertDateTimeData(boolean value)
Gets or sets a value that indicates whether the string in text-based document is converted to the date data. Default is false.
public final void setConvertNumericData(boolean value)
Gets or sets a value that indicates whether the string in text-based document is converted to numeric data. Default is false.
public final void setOptimizeMemoryUsage(boolean value)
Enables memory optimization mechanisms during input document processing, which may degrade performance in some special cases, but on the other hand decrease memory usage. Useful when processing huge documents and facing OutOfMemoryException. Default is false (memory optimization is disabled for the sake of better performance).
public final void setSeparator(String value)
Allows to specify a string separator (delimiter) for text-based Spreadsheet documents
public final void setTreatConsecutiveDelimitersAsOne(boolean value)
Defines whether consecutive delimiters should be treated as one. By default is false.