Package org.aoju.bus.office.excel.sax
Interface RowHandler
- All Known Implementing Classes:
AbstractRowHandler,BeanRowHandler,MapRowHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Sax方式读取Excel行处理器
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptiondefault void处理一个sheet页完成的操作void处理一行数据default voidhandleCell(int sheetIndex, long rowIndex, int cellIndex, Object value, org.apache.poi.ss.usermodel.CellStyle xssfCellStyle) 处理一个单元格的数据
-
Method Details
-
handle
处理一行数据- Parameters:
sheetIndex- 当前Sheet序号rowIndex- 当前行号,从0开始计数rowCells- 行数据,每个Object表示一个单元格的值
-
handleCell
default void handleCell(int sheetIndex, long rowIndex, int cellIndex, Object value, org.apache.poi.ss.usermodel.CellStyle xssfCellStyle) 处理一个单元格的数据- Parameters:
sheetIndex- 当前Sheet序号rowIndex- 当前行号cellIndex- 当前列号value- 单元格的值xssfCellStyle- 单元格样式
-
doAfterAllAnalysed
default void doAfterAllAnalysed()处理一个sheet页完成的操作
-