类 CsvOpenOptions
java.lang.Object
com.grapecity.documents.excel.OpenOptionsBase
com.grapecity.documents.excel.CsvOpenOptions
Option class for opening csv file.
-
构造器概要
-
方法概要
修饰符和类型方法说明final char
Gets cell separator.final String
Gets column separator.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.final String
Gets the default encoding, default is utf-8.final boolean
Indicates whether the text is formula if it starts with "=", default is true.Gets the custom parser.final boolean
Indicates whether to apply style for parsed values when converting string value to number or datetime, default is true.final String
Gets row separator.final String
已过时。getSeparatorString is deprecated, use getColumnSeparator.final void
setCellSeparator
(char value) Sets a char value as cell separator.final void
setColumnSeparator
(String value) Sets a string value as column separator.final void
setConvertDateTimeData
(boolean value) Sets a value that indicates whether the string in text file is converted to date data.final void
setConvertNumericData
(boolean value) Sets a value that indicates whether the string in text file is converted to numeric data.final void
setEncoding
(String value) Sets the default encoding, default is utf-8.final 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.final void
setParseStyle
(boolean value) Indicates whether to apply style for parsed values when converting string value to number or datetime, default is true.final void
setRowSeparator
(String value) Sets a string value as row separator.final void
setSeparatorString
(String value) 已过时。setSeparatorString is deprecated, use setColumnSeparator.从类继承的方法 com.grapecity.documents.excel.OpenOptionsBase
getFileFormat, setFileFormat
-
构造器详细资料
-
CsvOpenOptions
public CsvOpenOptions()Constructor.
-
-
方法详细资料
-
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
Gets column separator. -
setColumnSeparator
Sets a string value as column separator. -
getRowSeparator
Gets row separator. -
setRowSeparator
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
已过时。setSeparatorString is deprecated, use setColumnSeparator.Sets a string value as column separator. -
getSeparatorString
已过时。getSeparatorString is deprecated, use getColumnSeparator.Gets column separator. -
getEncoding
Gets the default encoding, default is utf-8. -
setEncoding
Sets the default encoding, default is utf-8. -
getParseStyle
public final boolean getParseStyle()Indicates 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) Indicates whether to apply style for parsed values when converting string value to number or datetime, default is true. -
getHasFormula
public final boolean getHasFormula()Indicates whether the text is formula if it starts with "=", default is true. -
setHasFormula
public final void setHasFormula(boolean value) Indicates whether the text is formula if it starts with "=", default is true. -
getParser
Gets the custom parser. -
setParser
Sets the custom parser.
-