@LoadLevel(name="easyj", order=10) @DependsOnClass(value={Excel.class,org.apache.poi.ss.usermodel.Workbook.class}) public class EasyjExcelConverter extends Object implements IExcelConverter
IExcelConverter 实现| Constructor and Description |
|---|
EasyjExcelConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatch(Class<?> clazz)
判断是否可以使用当前实现进行转换
|
<T> org.apache.poi.ss.usermodel.Workbook |
toExcel(List<T> list,
Class<T> clazz)
列表转换为excel
|
<T> List<T> |
toList(InputStream inputStream,
Class<T> clazz)
excel转换为列表
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoListpublic boolean isMatch(Class<?> clazz)
IExcelConverterisMatch in interface IExcelConverterclazz - 数据类型public <T> List<T> toList(InputStream inputStream, Class<T> clazz) throws Exception
IExcelConvertertoList in interface IExcelConverterT - 数据类型inputStream - excel文件流clazz - 数据类Exception - 转换失败public <T> org.apache.poi.ss.usermodel.Workbook toExcel(List<T> list, Class<T> clazz) throws Exception
IExcelConvertertoExcel in interface IExcelConverterT - 数据类型list - 数据列表clazz - 数据类Exception - 转换失败Copyright © 2021–2022 EasyJ????. All rights reserved.