@FunctionalInterface public interface ExcelRowReadListener<R> extends ExcelReadListener
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
readBefore(ExcelReaderContext<R> context)
Before you start reading the data
|
default Object |
readCell(Object cellValue,
Field field,
int rowIndex,
int colIndex,
RowType rowType)
Read each cell successfully
|
default void |
readFinish(ExcelReaderContext<R> context)
File data read finished
|
boolean |
readRow(R r,
List<?> otherValues,
int rowIndex,
RowType rowType)
Read each row successfully
|
boolean readRow(R r, List<?> otherValues, int rowIndex, RowType rowType)
r - Generated Java object , Null when not in the bodyrowIndex - The index of the current rowrowType - Current row typeotherValues - Except for the content of the bodydefault Object readCell(Object cellValue, Field field, int rowIndex, int colIndex, RowType rowType)
cellValue - Current cell valuefield - Current fieldrowIndex - Current row indexcolIndex - Current col indexrowType - Current row typedefault void readFinish(ExcelReaderContext<R> context)
context - Excel reader contextdefault void readBefore(ExcelReaderContext<R> context)
context - Excel reader contextCopyright © 2021. All rights reserved.