public abstract class AbstractExcelReaderExecutor<T> extends Object implements ExcelReaderLifecycle, ExcelExecutor
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
curColIndex |
protected int |
curRowIndex |
protected ExcelSheetDefinition |
curSheet |
protected int |
curSheetIndex |
protected ExcelReaderContext |
readerContext |
protected int |
totalRows |
| 构造器和说明 |
|---|
AbstractExcelReaderExecutor(ExcelReaderContext readerContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
executeRead() |
org.apache.poi.ss.usermodel.Workbook |
executeWrite() |
void |
format(ExcelRowDefinition row)
格式转换
|
protected abstract ExcelPerRowProcessor |
getExcelRowProcess() |
boolean |
isEmptyRow(ExcelRowDefinition row)
是否空行
|
protected boolean |
isTitleRow(ExcelRowDefinition row)
是否标题行
|
boolean |
validate(ExcelRowDefinition row)
数据校验
|
protected int curSheetIndex
protected int curRowIndex
protected int curColIndex
protected int totalRows
protected ExcelReaderContext readerContext
protected ExcelSheetDefinition curSheet
public AbstractExcelReaderExecutor(ExcelReaderContext readerContext)
protected abstract ExcelPerRowProcessor getExcelRowProcess()
public List<T> executeRead()
executeRead 在接口中 ExcelExecutorpublic org.apache.poi.ss.usermodel.Workbook executeWrite()
executeWrite 在接口中 ExcelExecutorpublic boolean isEmptyRow(ExcelRowDefinition row)
ExcelReaderLifecycleisEmptyRow 在接口中 ExcelReaderLifecyclepublic boolean validate(ExcelRowDefinition row)
ExcelReaderLifecyclevalidate 在接口中 ExcelReaderLifecyclepublic void format(ExcelRowDefinition row)
ExcelReaderLifecycleformat 在接口中 ExcelReaderLifecycleprotected boolean isTitleRow(ExcelRowDefinition row)
row - Copyright © 2019. All rights reserved.