public class SimpleExcelImport extends Object
| 构造器和说明 |
|---|
SimpleExcelImport() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addFeild(CellReader readCell)
添加 读取字段
|
ReadCompleteListener |
getCompleteListener()
获取 导入完成监听
|
int |
getEndRow()
获取 数据截止行
|
ReadLoadListener |
getLoadListener()
获取 准备监听
|
ReadReadyListener |
getReadyListener()
获取 导入监听
|
int |
getStartRow()
获取 数据起始行
|
void |
imported(File file,
int sheetAt)
开始导入
|
void |
imported(InputStream inputStream,
int sheetAt)
开始导入
|
void |
imported(String filePath,
int sheetAt)
开始导入
|
void |
setCompleteListener(ReadCompleteListener readCompleteListener)
设置 导入完成监听
|
void |
setEndRow(int endRow)
设置 数据截止行
|
void |
setLoadListener(ReadLoadListener readListener)
设置 准备监听
|
void |
setReadyListener(ReadReadyListener readyListener)
设置 导入监听
|
void |
setStartRow(int startRow)
设置 数据起始行
|
public void imported(String filePath, int sheetAt) throws Exception
filePath - 表格文件路径sheetAt - 工作簿Exception - Exceptionpublic void imported(File file, int sheetAt) throws Exception
file - 表格文件sheetAt - 工作簿Exception - Exceptionpublic void imported(InputStream inputStream, int sheetAt) throws Exception
inputStream - 表格文件流sheetAt - 工作簿Exception - Exceptionpublic int getStartRow()
public void setStartRow(int startRow)
startRow - 数据起始行public int getEndRow()
public void setEndRow(int endRow)
endRow - 数据截止行public ReadLoadListener getLoadListener()
public void setLoadListener(ReadLoadListener readListener)
readListener - 准备监听public ReadCompleteListener getCompleteListener()
public void setCompleteListener(ReadCompleteListener readCompleteListener)
readCompleteListener - 导入完成监听public ReadReadyListener getReadyListener()
public void setReadyListener(ReadReadyListener readyListener)
readyListener - 导入监听public boolean addFeild(CellReader readCell)
readCell - 读取字段Copyright © 2019. All rights reserved.