public class ExcelReader extends Object
| 构造器和说明 |
|---|
ExcelReader(AnalysisParam param,
AnalysisEventListener eventListener)
已过时。
please use
EasyExcelFactory.read() build 'ExcelReader' |
ExcelReader(InputStream in,
ExcelTypeEnum excelTypeEnum,
Object customContent,
AnalysisEventListener eventListener)
已过时。
please use
EasyExcelFactory.read() build 'ExcelReader' |
ExcelReader(InputStream in,
ExcelTypeEnum excelTypeEnum,
Object customContent,
AnalysisEventListener eventListener,
boolean trim)
已过时。
please use
EasyExcelFactory.read() build 'ExcelReader' |
ExcelReader(InputStream in,
Object customContent,
AnalysisEventListener eventListener)
已过时。
please use
EasyExcelFactory.read() build 'ExcelReader' |
ExcelReader(InputStream in,
Object customContent,
AnalysisEventListener eventListener,
boolean trim)
已过时。
please use
EasyExcelFactory.read() build 'ExcelReader' |
ExcelReader(ReadWorkbook readWorkbook) |
| 限定符和类型 | 方法和说明 |
|---|---|
AnalysisContext |
analysisContext()
Context for the entire execution process
|
ExcelReadExecutor |
excelExecutor()
Current executor
|
protected void |
finalize()
Prevents calls to
finish() from freeing the cache |
void |
finish()
Complete the entire read file.Release the cache and close stream.
|
AnalysisContext |
getAnalysisContext()
已过时。
please use
analysisContext() |
List<Sheet> |
getSheets()
已过时。
please use
excelExecutor() |
void |
read()
已过时。
lease use
readAll() |
ExcelReader |
read(List<ReadSheet> readSheetList)
Read multiple sheets.
|
ExcelReader |
read(ReadSheet... readSheet)
Parse the specified sheet,SheetNo start from 0
|
void |
read(Sheet sheet)
已过时。
please us
read(ReadSheet...) |
void |
read(Sheet sheet,
Class clazz)
已过时。
Set the class in the sheet before read
|
void |
readAll()
Parse all sheet content by default
|
@Deprecated public ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener)
EasyExcelFactory.read() build 'ExcelReader'in - the POI filesystem that contains the Workbook streamexcelTypeEnum - 03 or 07customContent - ReadListener.invoke(Object, AnalysisContext)AnalysisContexteventListener - Callback method after each row is parsed.@Deprecated public ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener)
EasyExcelFactory.read() build 'ExcelReader'in - the POI filesystem that contains the Workbook streamcustomContent - ReadListener.invoke(Object, AnalysisContext)AnalysisContexteventListener - Callback method after each row is parsed@Deprecated public ExcelReader(AnalysisParam param, AnalysisEventListener eventListener)
EasyExcelFactory.read() build 'ExcelReader'param - old param DeprecatedeventListener - Callback method after each row is parsed.@Deprecated public ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener, boolean trim)
EasyExcelFactory.read() build 'ExcelReader'in - customContent - ReadListener.invoke(Object, AnalysisContext)AnalysisContexteventListener - 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.@Deprecated public ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener, boolean trim)
EasyExcelFactory.read() build 'ExcelReader'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.public ExcelReader(ReadWorkbook readWorkbook)
@Deprecated public void read()
readAll()public void readAll()
public ExcelReader read(ReadSheet... readSheet)
readSheet - Read sheetpublic ExcelReader read(List<ReadSheet> readSheetList)
readSheetList - @Deprecated public void read(Sheet sheet)
read(ReadSheet...)sheet - Read sheet@Deprecated public void read(Sheet sheet, Class clazz)
sheet - Read sheetclazz - object parsed into each row of valuepublic AnalysisContext analysisContext()
public ExcelReadExecutor excelExecutor()
@Deprecated public List<Sheet> getSheets()
excelExecutor()@Deprecated public AnalysisContext getAnalysisContext()
analysisContext()public void finish()
Copyright © 2018–2021 Alibaba Group. All rights reserved.