public class CsvOpenOptions extends OpenOptionsBase
| Constructor and Description |
|---|
CsvOpenOptions()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getCellSeparator()
Gets cell separator.
|
java.lang.String |
getColumnSeparator()
Gets column separator.
|
boolean |
getConvertDateTimeData()
Gets a value that indicates whether the string in text file is converted to
date data, default is true.
|
boolean |
getConvertNumericData()
Gets a value that indicates whether the string in text file is converted to
numeric data, default is true.
|
java.lang.String |
getEncoding()
Gets the default encoding, default is utf-8.
|
boolean |
getHasFormula()
Indicates whether the text is formula if it starts with "=", default is true.
|
ICsvParser |
getParser()
Gets the custom parser.
|
boolean |
getParseStyle()
Indicates whether to apply style for parsed values when converting string
value to number or datetime, default is true.
|
java.lang.String |
getRowSeparator()
Gets row separator.
|
java.lang.String |
getSeparatorString()
Deprecated.
getSeparatorString is deprecated, use getColumnSeparator.
|
void |
setCellSeparator(char value)
Sets a char value as cell separator.
|
void |
setColumnSeparator(java.lang.String value)
Sets a string value as column separator.
|
void |
setConvertDateTimeData(boolean value)
Sets a value that indicates whether the string in text file is converted to
date data.
|
void |
setConvertNumericData(boolean value)
Sets a value that indicates whether the string in text file is converted to
numeric data.
|
void |
setEncoding(java.lang.String value)
Sets the default encoding, default is utf-8.
|
void |
setHasFormula(boolean value)
Indicates whether the text is formula if it starts with "=", default is true.
|
void |
setParser(ICsvParser parser)
Sets the custom parser.
|
void |
setParseStyle(boolean value)
Indicates whether to apply style for parsed values when converting string
value to number or datetime, default is true.
|
void |
setRowSeparator(java.lang.String value)
Sets a string value as row separator.
|
void |
setSeparatorString(java.lang.String value)
Deprecated.
setSeparatorString is deprecated, use setColumnSeparator.
|
getFileFormatpublic final boolean getConvertNumericData()
public final void setConvertNumericData(boolean value)
public final boolean getConvertDateTimeData()
public final void setConvertDateTimeData(boolean value)
public final java.lang.String getColumnSeparator()
public final void setColumnSeparator(java.lang.String value)
public final java.lang.String getRowSeparator()
public final void setRowSeparator(java.lang.String value)
public final char getCellSeparator()
public final void setCellSeparator(char value)
@Deprecated public final void setSeparatorString(java.lang.String value)
@Deprecated public final java.lang.String getSeparatorString()
public final java.lang.String getEncoding()
public final void setEncoding(java.lang.String value)
public final boolean getParseStyle()
public final void setParseStyle(boolean value)
public final boolean getHasFormula()
public final void setHasFormula(boolean value)
public ICsvParser getParser()
public void setParser(ICsvParser parser)