public class TxtLoadOptions extends AbstractTextLoadOptions
| Constructor and Description |
|---|
TxtLoadOptions()
Creates the options for loading text file.
|
TxtLoadOptions(int loadFormat)
Creates the options for loading text file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getExtendToNextSheet()
Whether extends data to next sheet when the rows or columns of data exceed limit.
|
ICustomParser[] |
getPreferredParsers()
Gets preferred value parsers for loading text file.
|
char |
getSeparator()
Gets character separator of text file.
|
java.lang.String |
getSeparatorString()
Gets a string value as separator.
|
char |
getTextQualifier()
Specifies the text qualifier for cell values.
|
boolean |
getTreatConsecutiveDelimitersAsOne()
Whether consecutive delimiters should be treated as one.
|
boolean |
getTreatQuotePrefixAsValue()
Indicates whether the leading single quote sign should be taken as part of the value of one cell.
|
boolean |
hasFormula()
Indicates whether the text is formula if it starts with "=".
|
boolean |
hasTextQualifier()
Whether there is text qualifier for cell value.
|
boolean |
isMultiEncoded()
True means that the file contains several encoding.
|
void |
setExtendToNextSheet(boolean value)
Whether extends data to next sheet when the rows or columns of data exceed limit.
|
void |
setHasFormula(boolean value)
Indicates whether the text is formula if it starts with "=".
|
void |
setHasTextQualifier(boolean value)
Whether there is text qualifier for cell value.
|
void |
setMultiEncoded(boolean value)
True means that the file contains several encoding.
|
void |
setPreferredParsers(ICustomParser[] value)
Sets preferred value parsers for loading text file.
|
void |
setSeparator(char value)
Sets character separator of text file.
|
void |
setSeparatorString(java.lang.String value)
Sets a string value as separator.
|
void |
setTextQualifier(char value)
Specifies the text qualifier for cell values.
|
void |
setTreatConsecutiveDelimitersAsOne(boolean value)
Whether consecutive delimiters should be treated as one.
|
void |
setTreatQuotePrefixAsValue(boolean value)
Indicates whether the leading single quote sign should be taken as part of the value of one cell.
|
getConvertDateTimeData, getConvertNumericData, getEncoding, getKeepPrecision, getLoadStyleStrategy, setConvertDateTimeData, setConvertNumericData, setEncoding, setKeepPrecision, setLoadStyleStrategygetAutoFilter, getAutoFitterOptions, getCheckDataValid, getCheckExcelRestriction, getDefaultStyleSettings, getFontConfigs, getIgnoreNotPrinted, getIgnoreUselessShapes, getInterruptMonitor, getKeepUnparsedData, getLanguageCode, getLightCellsDataHandler, getLoadFilter, getLoadFormat, getLocale, getMemorySetting, getParsingFormulaOnOpen, getParsingPivotCachedRecords, getPassword, getPreservePaddingSpacesInFormula, getRegion, getStandardFont, getStandardFontSize, getWarningCallback, setAutoFilter, setAutoFitterOptions, setCheckDataValid, setCheckExcelRestriction, setFontConfigs, setIgnoreNotPrinted, setIgnoreUselessShapes, setInterruptMonitor, setKeepUnparsedData, setLanguageCode, setLightCellsDataHandler, setLoadFilter, setLocale, setMemorySetting, setPaperSize, setParsingFormulaOnOpen, setParsingPivotCachedRecords, setPassword, setPreservePaddingSpacesInFormula, setRegion, setStandardFont, setStandardFontSize, setWarningCallbackpublic TxtLoadOptions()
Remarks
The default load file type is CSV .public TxtLoadOptions(int loadFormat)
loadFormat - LoadFormat. The loading formatpublic char getSeparator()
public void setSeparator(char value)
public java.lang.String getSeparatorString()
public void setSeparatorString(java.lang.String value)
public boolean isMultiEncoded()
public void setMultiEncoded(boolean value)
public ICustomParser[] getPreferredParsers()
Remarks
parsers[0] is the parser will be used for the first column in text template file, parsers[1] is the parser will be used for the second column, ...etc. The last one(parsers[parsers.length-1]) will be used for all other columns start from parsers.length-1. If one item is null, the corresponding column will be parsed by the default parser of Aspose.Cells.public void setPreferredParsers(ICustomParser[] value)
Remarks
parsers[0] is the parser will be used for the first column in text template file, parsers[1] is the parser will be used for the second column, ...etc. The last one(parsers[parsers.length-1]) will be used for all other columns start from parsers.length-1. If one item is null, the corresponding column will be parsed by the default parser of Aspose.Cells.public boolean hasFormula()
public void setHasFormula(boolean value)
public boolean hasTextQualifier()
public void setHasTextQualifier(boolean value)
public char getTextQualifier()
Remarks
When setting this property,hasTextQualifier() will become true automatically.public void setTextQualifier(char value)
Remarks
When setting this property,hasTextQualifier() will become true automatically.public boolean getTreatConsecutiveDelimitersAsOne()
public void setTreatConsecutiveDelimitersAsOne(boolean value)
public boolean getTreatQuotePrefixAsValue()
Style.getQuotePrefix() will be set as true for the cell.public void setTreatQuotePrefixAsValue(boolean value)
Style.getQuotePrefix() will be set as true for the cell.public boolean getExtendToNextSheet()
public void setExtendToNextSheet(boolean value)
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2001-2023. All Rights Reserved.