Package com.power4j.fist.data.excel
Class ExcelImporter<T,D>
java.lang.Object
com.power4j.fist.data.excel.ExcelImporter<T,D>
- Type Parameters:
T- Excel 文档模型D- 数据库实体类型
- Since:
- 1.0
- Author:
- CJ (power4j@outlook.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoImport(InputStream stream) 解析流,并导入数据库protected voidprocessAndClear(Collection<T> data)
-
Constructor Details
-
ExcelImporter
public ExcelImporter()
-
-
Method Details
-
doImport
解析流,并导入数据库- Parameters:
stream- InputStream- Returns:
- 返回导入数据条数
-
processAndClear
-