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.

@FunctionalInterface public interface RowHandler
Sax方式读取Excel行处理器
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    处理一个sheet页完成的操作
    void
    handle(int sheetIndex, long rowIndex, List<Object> rowCells)
    处理一行数据
    default void
    handleCell(int sheetIndex, long rowIndex, int cellIndex, Object value, org.apache.poi.ss.usermodel.CellStyle xssfCellStyle)
    处理一个单元格的数据
  • Method Details

    • handle

      void handle(int sheetIndex, long rowIndex, List<Object> rowCells)
      处理一行数据
      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页完成的操作