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.
|
int |
getHeaderColumnsCount()
The count of header columns to be repeated for extended sheets.
|
int |
getHeaderRowsCount()
The count of header rows to be repeated for extended sheets.
|
int |
getMaxColumnCount()
The maximum count of columns to be imported for one sheet.
|
int |
getMaxRowCount()
The maximum count of rows to be imported for one sheet.
|
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 |
setHeaderColumnsCount(int value)
The count of header columns to be repeated for extended sheets.
|
void |
setHeaderRowsCount(int value)
The count of header rows to be repeated for extended sheets.
|
void |
setMaxColumnCount(int value)
The maximum count of columns to be imported for one sheet.
|
void |
setMaxRowCount(int value)
The maximum count of rows to be imported for one sheet.
|
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.
|
copy, 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()
Remarks
If this property is true, extra data will be put into next sheet behind current one (if current sheet is the last one, new sheet will be appended to current workbook). If this property is false, the data exceeding limit will be ignored.public void setExtendToNextSheet(boolean value)
Remarks
If this property is true, extra data will be put into next sheet behind current one (if current sheet is the last one, new sheet will be appended to current workbook). If this property is false, the data exceeding limit will be ignored.public int getHeaderRowsCount()
Remarks
The header rows specified by this property will be duplicated for those extended sheets. This property only takes effect whengetExtendToNextSheet() is true.public void setHeaderRowsCount(int value)
Remarks
The header rows specified by this property will be duplicated for those extended sheets. This property only takes effect whengetExtendToNextSheet() is true.public int getHeaderColumnsCount()
Remarks
The header columns specified by this property will be duplicated for those extended sheets. This property only takes effect whengetExtendToNextSheet() is true.public void setHeaderColumnsCount(int value)
Remarks
The header columns specified by this property will be duplicated for those extended sheets. This property only takes effect whengetExtendToNextSheet() is true.public int getMaxRowCount()
Remarks
Those rows exceeding this limit will be ignored or extended to next sheet according togetExtendToNextSheet().
This count includes the header rows(getHeaderRowsCount()).
The maximum allowed value of it is the row limit of corresponding file format, such as for xlsx file it 1048576.
If this property has not been specified or the specified value is not positive, then the maximum limit will be used too.public void setMaxRowCount(int value)
Remarks
Those rows exceeding this limit will be ignored or extended to next sheet according togetExtendToNextSheet().
This count includes the header rows(getHeaderRowsCount()).
The maximum allowed value of it is the row limit of corresponding file format, such as for xlsx file it 1048576.
If this property has not been specified or the specified value is not positive, then the maximum limit will be used too.public int getMaxColumnCount()
Remarks
Those columns exceeding this limit will be ignored or extended to next sheet according togetExtendToNextSheet().
This count includes the header columns(getHeaderColumnsCount()).
The maximum value of it is the column limit of corresponding file format, such as for xlsx file it 16384.
If this property has not been specified or the specified value is not positive, then the maximum limit will be used too.public void setMaxColumnCount(int value)
Remarks
Those columns exceeding this limit will be ignored or extended to next sheet according togetExtendToNextSheet().
This count includes the header columns(getHeaderColumnsCount()).
The maximum value of it is the column limit of corresponding file format, such as for xlsx file it 16384.
If this property has not been specified or the specified value is not positive, then the maximum limit will be used too.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 2003-2025. All Rights Reserved.