mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add BeeCP support
This commit is contained in:
@@ -6,36 +6,38 @@ import java.util.List;
|
||||
|
||||
/**
|
||||
* Sax方式读取Excel行处理器
|
||||
* @author looly
|
||||
*
|
||||
* @author looly
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface RowHandler {
|
||||
|
||||
/**
|
||||
* 处理一个单元格的数据
|
||||
* @param sheetIndex 当前Sheet序号
|
||||
* @param rowIndex 当前行号
|
||||
* @param cellIndex 当前列号
|
||||
* @param value 单元格的值
|
||||
* @param xssfCellStyle 单元格样式
|
||||
*/
|
||||
default void handleCell(int sheetIndex, long rowIndex, int cellIndex, Object value, CellStyle xssfCellStyle){
|
||||
//pass
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理一行数据
|
||||
*
|
||||
* @param sheetIndex 当前Sheet序号
|
||||
* @param rowIndex 当前行号,从0开始计数
|
||||
* @param rowList 行数据列表
|
||||
* @param rowIndex 当前行号,从0开始计数
|
||||
* @param rowList 行数据列表
|
||||
*/
|
||||
void handle(int sheetIndex, long rowIndex, List<Object> rowList);
|
||||
|
||||
/**
|
||||
* 处理一个单元格的数据
|
||||
*
|
||||
* @param sheetIndex 当前Sheet序号
|
||||
* @param rowIndex 当前行号
|
||||
* @param cellIndex 当前列号
|
||||
* @param value 单元格的值
|
||||
* @param xssfCellStyle 单元格样式
|
||||
*/
|
||||
default void handleCell(int sheetIndex, long rowIndex, int cellIndex, Object value, CellStyle xssfCellStyle) {
|
||||
//pass
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理一个sheet页完成的操作
|
||||
*/
|
||||
default void doAfterAllAnalysed(){
|
||||
default void doAfterAllAnalysed() {
|
||||
//pass
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user