程序包 com.sh.wf.excel
类 ExcelReader
java.lang.Object
com.sh.wf.excel.ExcelReader
Excel readers are all read in event mode.
-
构造器概要
构造器构造器说明ExcelReader(AnalysisParam param, AnalysisEventListener eventListener) 已过时。ExcelReader(ReadWorkbook readWorkbook) ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener) 已过时。please useEasyExcelFactory.read()build 'ExcelReader'ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener, boolean trim) 已过时。please useEasyExcelFactory.read()build 'ExcelReader'ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener) 已过时。please useEasyExcelFactory.read()build 'ExcelReader'ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener, boolean trim) 已过时。 -
方法概要
修饰符和类型方法说明Context for the entire execution processCurrent executorprotected voidfinalize()Prevents calls tofinish()from freeing the cachevoidfinish()Complete the entire read file.Release the cache and close stream.已过时。please useanalysisContext()已过时。please useexcelExecutor()voidread()已过时。lease usereadAll()void已过时。please usread(ReadSheet...)void已过时。Set the class in the sheet before readParse the specified sheet,SheetNo start from 0Read multiple sheets.voidreadAll()Parse all sheet content by default
-
构造器详细资料
-
ExcelReader
@Deprecated public ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener) 已过时。please useEasyExcelFactory.read()build 'ExcelReader'Create new reader- 参数:
in- the POI filesystem that contains the Workbook streamexcelTypeEnum- 03 or 07customContent-ReadListener.invoke(Object, AnalysisContext)AnalysisContexteventListener- Callback method after each row is parsed.
-
ExcelReader
@Deprecated public ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener) 已过时。please useEasyExcelFactory.read()build 'ExcelReader'Create new reader- 参数:
in- the POI filesystem that contains the Workbook streamcustomContent-ReadListener.invoke(Object, AnalysisContext)AnalysisContexteventListener- Callback method after each row is parsed
-
ExcelReader
已过时。please useEasyExcelFactory.read()build 'ExcelReader'Create new reader- 参数:
param- old param DeprecatedeventListener- Callback method after each row is parsed.
-
ExcelReader
@Deprecated public ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener, boolean trim) 已过时。 -
ExcelReader
@Deprecated public ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener, boolean trim) 已过时。please useEasyExcelFactory.read()build 'ExcelReader'Create new reader- 参数:
in- the POI filesystem that contains the Workbook streamexcelTypeEnum- 03 or 07customContent-ReadListener.invoke(Object, AnalysisContext)AnalysisContexteventListener- Callback method after each row is parsed.trim- The content of the form is empty and needs to be empty. The purpose is to be fault-tolerant, because there are often table contents with spaces that can not be converted into custom types. For example: '1234 ' contain a space cannot be converted to int.
-
ExcelReader
-
-
方法详细资料
-
read
已过时。lease usereadAll()Parse all sheet content by default -
readAll
public void readAll()Parse all sheet content by default -
read
Parse the specified sheet,SheetNo start from 0- 参数:
readSheet- Read sheet- 返回:
- ExcelReader
-
read
Read multiple sheets.- 参数:
readSheetList- List- 返回:
- ExcelReader
-
read
已过时。please usread(ReadSheet...)Parse the specified sheet,SheetNo start from 1- 参数:
sheet- Read sheet
-
read
已过时。Set the class in the sheet before readParse the specified sheet- 参数:
sheet- Read sheetclazz- object parsed into each row of value
-
analysisContext
Context for the entire execution process- 返回:
- AnalysisContext
-
excelExecutor
Current executor- 返回:
- ExcelReadExecutor
-
getSheets
已过时。please useexcelExecutor()Parse the workBook get all sheets- 返回:
- workBook all sheets
-
getAnalysisContext
已过时。please useanalysisContext()- 返回:
- AnalysisContext
-
finish
public void finish()Complete the entire read file.Release the cache and close stream. -
finalize
protected void finalize()Prevents calls tofinish()from freeing the cache
-
EasyExcelFactory.read()build 'ExcelReader'