Package com.grapecity.documents.excel
Class CsvOpenOptions
java.lang.Object
com.grapecity.documents.excel.OpenOptionsBase
com.grapecity.documents.excel.CsvOpenOptions
Option class for opening csv file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal charGets cell separator.final StringGets column separator.final booleanGets a value that indicates whether the string in text file is converted to date data, default is true.final booleanGets a value that indicates whether the string in text file is converted to numeric data, default is true.final StringGets the default encoding, default is utf-8.final booleanGets a boolean value indicating whether the text is formula if it starts with \"=\", default is true."Gets the custom parser.final booleanGets a boolean value indicating whether to apply style for parsed values when converting string value to number or datetime, default is true.final StringGets row separator.final StringDeprecated.getSeparatorString is deprecated, use getColumnSeparator.final voidsetCellSeparator(char value) Sets a char value as cell separator.final voidsetColumnSeparator(String value) Sets a string value as column separator.final voidsetConvertDateTimeData(boolean value) Sets a value that indicates whether the string in text file is converted to date data.final voidsetConvertNumericData(boolean value) Sets a value that indicates whether the string in text file is converted to numeric data.final voidsetEncoding(String value) Sets the default encoding, default is utf-8.final voidsetHasFormula(boolean value) Sets a boolean value indicating whether the text is formula if it starts with \"=\", default is true."voidsetParser(ICsvParser parser) Sets the custom parser.final voidsetParseStyle(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.final voidsetRowSeparator(String value) Sets a string value as row separator.final voidsetSeparatorString(String value) Deprecated.setSeparatorString is deprecated, use setColumnSeparator.Methods inherited from class com.grapecity.documents.excel.OpenOptionsBase
getFileFormat, setFileFormat
-
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
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
Deprecated.setSeparatorString is deprecated, use setColumnSeparator.Sets a string value as column separator. -
getSeparatorString
Deprecated.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()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. -
getHasFormula
public final boolean getHasFormula()Gets a boolean value indicating whether the text is formula if it starts with \"=\", default is true." -
setHasFormula
public final void setHasFormula(boolean value) Sets a boolean value indicating whether the text is formula if it starts with \"=\", default is true." -
getParser
Gets the custom parser. -
setParser
Sets the custom parser.
-