T
- 转换后的数据类型public abstract class AbstractRowHandler<T> extends Object implements RowHandler
Modifier and Type | Field and Description |
---|---|
protected Func1<List<Object>,T> |
convertFunc
行数据转换函数
|
protected int |
endRowIndex
读取结束行(包含,从0开始计数)
|
protected int |
startRowIndex
读取起始行(包含,从0开始计数)
|
Constructor and Description |
---|
AbstractRowHandler(int startRowIndex,
int endRowIndex)
构造
|
Modifier and Type | Method and Description |
---|---|
void |
handle(int sheetIndex,
long rowIndex,
List<Object> rowCells)
处理一行数据
|
abstract void |
handleData(int sheetIndex,
long rowIndex,
T data)
处理转换后的数据
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doAfterAllAnalysed, handleCell
protected final int startRowIndex
protected final int endRowIndex
public AbstractRowHandler(int startRowIndex, int endRowIndex)
startRowIndex
- 读取起始行(包含,从0开始计数)endRowIndex
- 读取结束行(包含,从0开始计数)public void handle(int sheetIndex, long rowIndex, List<Object> rowCells)
RowHandler
handle
in interface RowHandler
sheetIndex
- 当前Sheet序号rowIndex
- 当前行号,从0开始计数rowCells
- 行数据,每个Object表示一个单元格的值public abstract void handleData(int sheetIndex, long rowIndex, T data)
sheetIndex
- 当前Sheet序号rowIndex
- 当前行号,从0开始计数data
- 行数据Copyright © 2024. All rights reserved.