@FunctionalInterface public interface RowHandler
Modifier and Type | Method and Description |
---|---|
default void |
doAfterAllAnalysed()
处理一个sheet页完成的操作
|
void |
handle(int sheetIndex,
long rowIndex,
List<Object> rowList)
处理一行数据
|
default void |
handleCell(int sheetIndex,
long rowIndex,
int cellIndex,
Object value,
org.apache.poi.ss.usermodel.CellStyle xssfCellStyle)
处理一个单元格的数据
|
void handle(int sheetIndex, long rowIndex, List<Object> rowList)
sheetIndex
- 当前Sheet序号rowIndex
- 当前行号,从0开始计数rowList
- 行数据列表default void handleCell(int sheetIndex, long rowIndex, int cellIndex, Object value, org.apache.poi.ss.usermodel.CellStyle xssfCellStyle)
sheetIndex
- 当前Sheet序号rowIndex
- 当前行号cellIndex
- 当前列号value
- 单元格的值xssfCellStyle
- 单元格样式default void doAfterAllAnalysed()
Copyright © 2021. All rights reserved.