Class CsvOpenOptions
Option class for opening csv file.
-
Constructor Summary
Constructors
-
Method Summary
final char
final boolean
Gets a value that indicates whether the string in text file is converted to date data, default is true.
final boolean
Gets a value that indicates whether the string in text file is converted to numeric data, default is true.
Gets the default encoding, default is utf-8.
final boolean
Gets a boolean value indicating whether the text is formula if it starts with \"=\", default is true."
final boolean
Gets a boolean value indicating whether to apply style for parsed values when converting string value to number or datetime, default is true.
final void
Sets a char value as cell separator.
final void
Sets a string value as column separator.
final void
Sets a value that indicates whether the string in text file is converted to date data.
final void
Sets a value that indicates whether the string in text file is converted to numeric data.
final void
Sets the default encoding, default is utf-8.
final void
Sets a boolean value indicating whether the text is formula if it starts with \"=\", default is true."
void
final void
Sets a boolean value indicating whether to apply style for parsed values when converting string value to number or datetime, default is true.
final void
Sets a string value as row separator.
final void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CsvOpenOptions
public CsvOpenOptions()
Constructor.
-
Method Details
-
getConvertNumericData
public final boolean getConvertNumericData()
Gets a value that indicates whether the string in text file is converted to numeric data, default is true.
-
setConvertNumericData
public final void setConvertNumericData(boolean value)
Sets a value that indicates whether the string in text file is converted to numeric data.
-
getConvertDateTimeData
public final boolean getConvertDateTimeData()
Gets a value that indicates whether the string in text file is converted to date data, default is true.
-
setConvertDateTimeData
public final void setConvertDateTimeData(boolean value)
Sets a value that indicates whether the string in text file is converted to date data.
-
getColumnSeparator
public final String getColumnSeparator()
Gets column separator.
-
setColumnSeparator
public final void setColumnSeparator(String value)
Sets a string value as column separator.
-
getRowSeparator
public final String getRowSeparator()
Gets row separator.
-
setRowSeparator
public final void setRowSeparator(String value)
Sets a string value as row separator.
-
getCellSeparator
public final char getCellSeparator()
Gets cell separator.
-
setCellSeparator
public final void setCellSeparator(char value)
Sets a char value as cell separator.
-
setSeparatorString
Deprecated.
Sets a string value as column separator.
-
getSeparatorString
Deprecated.
Gets column separator.
-
getEncoding
public final String getEncoding()
Gets the default encoding, default is utf-8.
-
setEncoding
public final void setEncoding(String value)
Sets the default encoding, default is utf-8.
-
getParseStyle
public final boolean getParseStyle()
Gets a boolean value indicating whether to apply style for parsed values when converting string value to number or datetime, default is true.
-
setParseStyle
public final void setParseStyle(boolean value)
Sets a boolean value indicating whether to apply style for parsed values when converting string value to number or datetime, default is true.
-
-
-
getParser
Gets the custom parser.
-
setParser
Sets the custom parser.