@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,
boolean isHead,
boolean isBody)
Read each cell successfully
|
default void |
readFinish(ExcelReaderContext<R> context)
End of the import
|
boolean |
readRow(R r,
List<Object> otherValues,
int rowIndex,
boolean isHead,
boolean isBody)
Read each row successfully
|
boolean readRow(R r, List<Object> otherValues, int rowIndex, boolean isHead, boolean isBody)
r - Generated Java object , Null when not in the bodyrowIndex - The index of the current rowisHead - Whether is excel headerisBody - Whether is excel bodyotherValues - Except for the content of the bodydefault Object readCell(Object cellValue, Field field, int rowIndex, int colIndex, boolean isHead, boolean isBody)
cellValue - Current cell valuefield - Current fieldrowIndex - Current row indexcolIndex - Current col indexisHead - Whether is excel headerisBody - Whether is excel bodydefault void readFinish(ExcelReaderContext<R> context)
context - Excel reader contextdefault void readBefore(ExcelReaderContext<R> context)
context - Excel reader contextCopyright © 2020. All rights reserved.