public class ExcelReader extends Object
| 构造器和说明 |
|---|
ExcelReader(AnalysisParam param,
AnalysisEventListener eventListener)
已过时。
|
ExcelReader(InputStream in,
ExcelTypeEnum excelTypeEnum,
Object customContent,
AnalysisEventListener eventListener)
已过时。
|
ExcelReader(InputStream in,
ExcelTypeEnum excelTypeEnum,
Object customContent,
AnalysisEventListener eventListener,
boolean trim)
已过时。
|
ExcelReader(InputStream in,
Object customContent,
AnalysisEventListener eventListener)
Create new reader
|
ExcelReader(InputStream in,
Object customContent,
AnalysisEventListener eventListener,
boolean trim)
Create new reader
|
@Deprecated public ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener)
in - the POI filesystem that contains the Workbook streamexcelTypeEnum - 03 or 07customContent - AnalysisEventListener.invoke(Object, AnalysisContext)AnalysisContexteventListener - Callback method after each row is parsed.public ExcelReader(InputStream in, Object customContent, AnalysisEventListener eventListener)
in - the POI filesystem that contains the Workbook streamcustomContent - AnalysisEventListener.invoke(Object, AnalysisContext)AnalysisContexteventListener - Callback method after each row is parsed@Deprecated public ExcelReader(AnalysisParam param, AnalysisEventListener eventListener)
param - old param DeprecatedeventListener - Callback method after each row is parsed.@Deprecated public ExcelReader(InputStream in, ExcelTypeEnum excelTypeEnum, Object customContent, AnalysisEventListener eventListener, boolean trim)
in - the POI filesystem that contains the Workbook streamexcelTypeEnum - 03 or 07customContent - AnalysisEventListener.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(InputStream in, Object customContent, AnalysisEventListener eventListener, boolean trim)
in - customContent - AnalysisEventListener.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.public void read()
public void read(Sheet sheet)
sheet - Read sheet@Deprecated public void read(Sheet sheet, Class<? extends BaseRowModel> clazz)
sheet - Read sheetclazz - object parsed into each row of dataCopyright © 2018 Alibaba Group. All rights reserved.