public interface ExcelImporter
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
ExcelImporter.Error |
static class |
ExcelImporter.Header |
static class |
ExcelImporter.Result<T> |
| 限定符和类型 | 字段和说明 |
|---|---|
static ExcelImporter |
instance |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> ExcelImporter.Result<T> |
doImport(InputStream inputStream,
Class<T> type,
java.util.function.Function<T,ExcelImporter.Error> afterParsed,
Class... group)
解析excel为指定的class对象,并返回解析结果.类上的属性需要注解
Excel或者ApiModelProperty. |
static final ExcelImporter instance
<T> ExcelImporter.Result<T> doImport(InputStream inputStream, Class<T> type, java.util.function.Function<T,ExcelImporter.Error> afterParsed, Class... group)
Excel或者ApiModelProperty.T - 泛型inputStream - excel文件流,支持xls和xlsxtype - 要解析为的类型afterParsed - 每解析完一个对象都会调用此接口,用于自定义操作,如: 数据校验group - 导入的分组 Excel.group(),如果不指定则为 Object.getClass()Excel,
FastBeanCopier.getBeanFactory(),
默认的实现Copyright © 2018. All rights reserved.