类 ExcelReaderBuilder
java.lang.Object
com.sh.wf.excel.read.builder.ExcelReaderBuilder
Build ExcelWriter
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明autoCloseStream(Boolean autoCloseStream) Default trueAutomatic trim includes sheet name and contentbuild()customObject(Object customObject) This object can be read in the ListenerReadListener.invoke(Object, AnalysisContext)AnalysisContext.getCustom()excelType(ExcelTypeEnum excelType) Read file If 'inputStream' and 'file' all not empty,file firstfile(InputStream inputStream) Read InputStream If 'inputStream' and 'file' all not empty,file firstRead file If 'inputStream' and 'file' all not empty,file firstYou can only choose one of thehead(List)andhead(Class)You can only choose one of thehead(List)andhead(Class)headRowNumber(Integer headRowNumber) Count the number of added heads when read sheet. 0 - This Sheet has no head ,since the first row are the data 1 - This Sheet has one row head , this is the default 2 - This Sheet has two row head ,since the third row is the dataignoreEmptyRow(Boolean ignoreEmptyRow) Ignore empty rows.Default is true.mandatoryUseInputStream(Boolean mandatoryUseInputStream) Mandatory use 'inputStream' .Default is false.Whether the encryptionA cache that stores temp data to save memory.readCacheSelector(ReadCacheSelector readCacheSelector) Select the cache.Default useSimpleReadCacheSelectorregisterConverter(Converter converter) Custom type conversions override the default.registerReadListener(ReadListener readListener) Custom type listener run after defaultsheet()use1904windowing(Boolean use1904windowing) true if date uses 1904 windowing, or false if using 1900 date windowing.useDefaultListener(Boolean useDefaultListener) Whether to use the default listener, which is used by default.xlsxSAXParserFactoryName(String xlsxSAXParserFactoryName) SAXParserFactory used when reading xlsx.
-
构造器详细资料
-
ExcelReaderBuilder
public ExcelReaderBuilder()
-
-
方法详细资料
-
excelType
-
file
Read InputStream If 'inputStream' and 'file' all not empty,file first- 参数:
inputStream- InputStream- 返回:
- ExcelReaderBuilder
-
file
Read file If 'inputStream' and 'file' all not empty,file first- 参数:
file- File- 返回:
- ExcelReaderBuilder
-
file
Read file If 'inputStream' and 'file' all not empty,file first- 参数:
pathName- String- 返回:
- ExcelReaderBuilder
-
mandatoryUseInputStream
Mandatory use 'inputStream' .Default is false. if false,Will transfer 'inputStream' to temporary files to improve efficiency- 参数:
mandatoryUseInputStream- Boolean- 返回:
- ExcelReaderBuilder
-
autoCloseStream
Default true- 参数:
autoCloseStream- Boolean- 返回:
- ExcelReaderBuilder
-
ignoreEmptyRow
Ignore empty rows.Default is true.- 参数:
ignoreEmptyRow- Boolean- 返回:
- ExcelReaderBuilder
-
customObject
This object can be read in the ListenerReadListener.invoke(Object, AnalysisContext)AnalysisContext.getCustom()- 参数:
customObject- Object- 返回:
- ExcelReaderBuilder
-
readCache
A cache that stores temp data to save memory.- 参数:
readCache- ReadCache- 返回:
- ExcelReaderBuilder
-
readCacheSelector
Select the cache.Default useSimpleReadCacheSelector- 参数:
readCacheSelector- ReadCacheSelector- 返回:
- ExcelReaderBuilder
-
headRowNumber
Count the number of added heads when read sheet. 0 - This Sheet has no head ,since the first row are the data 1 - This Sheet has one row head , this is the default 2 - This Sheet has two row head ,since the third row is the data- 参数:
headRowNumber- Integer- 返回:
- ExcelReaderBuilder
-
head
You can only choose one of thehead(List)andhead(Class)- 参数:
head- List- 返回:
- ExcelReaderBuilder
-
head
You can only choose one of thehead(List)andhead(Class)- 参数:
clazz- Class- 返回:
- ExcelReaderBuilder
-
registerConverter
Custom type conversions override the default.- 参数:
converter- Converter- 返回:
- ExcelReaderBuilder
-
registerReadListener
Custom type listener run after default- 参数:
readListener- ReadListener- 返回:
- ExcelReaderBuilder
-
use1904windowing
true if date uses 1904 windowing, or false if using 1900 date windowing. default is false- 参数:
use1904windowing- Boolean- 返回:
- ExcelReaderBuilder
-
autoTrim
Automatic trim includes sheet name and content- 参数:
autoTrim- Boolean- 返回:
- ExcelReaderBuilder
-
password
Whether the encryption- 参数:
password- String- 返回:
- ExcelReaderBuilder
-
xlsxSAXParserFactoryName
SAXParserFactory used when reading xlsx. The default will automatically find. Please pass in the name of a class ,like : "com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"- 参数:
xlsxSAXParserFactoryName- String- 返回:
- ExcelReaderBuilder
- 另请参阅:
-
useDefaultListener
Whether to use the default listener, which is used by default.The
ModelBuildEventListeneris loaded by default to convert the object.- 参数:
useDefaultListener- Boolean- 返回:
- ExcelReaderBuilder
-
build
-
doReadAll
-
sheet
-
sheet
-
sheet
-
sheet
-