类 ExcelImportUtil
java.lang.Object
org.jeecgframework.poi.excel.ExcelImportUtil
Excel 导入工具
- 版本:
- 1.0
- 作者:
- JEECG
-
方法概要
修饰符和类型方法说明static <T> List<T>importExcel(File file, Class<?> pojoClass, ImportParams params) Excel 导入 数据源本地文件,不返回校验结果 导入 字 段类型 Integer,Long,Double,Date,String,Booleanstatic <T> List<T>importExcel(InputStream inputstream, Class<?> pojoClass, ImportParams params) Excel 导入 数据源IO流,不返回校验结果 导入 字段类型 Integer,Long,Double,Date,String,Booleanstatic <T> List<T>importExcelBySax(InputStream inputstream, Class<?> pojoClass, ImportParams params) Excel 通过SAX解析方法,适合大数据导入,不支持图片 导入 数据源IO流,不返回校验结果 导入 字段类型 Integer,Long,Double,Date,String,Booleanstatic voidimportExcelBySax(InputStream inputstream, Class<?> pojoClass, ImportParams params, IExcelReadRowHanlder hanlder) Excel 通过SAX解析方法,适合大数据导入,不支持图片 导入 数据源本地文件,不返回校验结果 导入 字 段类型 Integer,Long,Double,Date,String,Booleanstatic <T> List<T>importExcelBySax(InputStream inputstream, ISaxRowRead rowRead) Excel 通过SAX解析方法,适合大数据导入,不支持图片 导入 数据源IO流,不返回校验结果 导入 字段类型 Integer,Long,Double,Date,String,Booleanstatic <T> ExcelImportResult<T>importExcelVerify(File file, Class<?> pojoClass, ImportParams params) Excel 导入 数据源本地文件,返回校验结果 字段类型 Integer,Long,Double,Date,String,Booleanstatic <T> ExcelImportResult<T>importExcelVerify(InputStream inputstream, Class<?> pojoClass, ImportParams params) Excel 导入 数据源IO流,返回校验结果 字段类型 Integer,Long,Double,Date,String,Boolean
-
方法详细资料
-
importExcel
Excel 导入 数据源本地文件,不返回校验结果 导入 字 段类型 Integer,Long,Double,Date,String,Boolean- 参数:
file-pojoClass-params-- 返回:
- 抛出:
Exception
-
importExcel
public static <T> List<T> importExcel(InputStream inputstream, Class<?> pojoClass, ImportParams params) throws Exception Excel 导入 数据源IO流,不返回校验结果 导入 字段类型 Integer,Long,Double,Date,String,Boolean- 参数:
file-pojoClass-params-- 返回:
- 抛出:
Exception
-
importExcelVerify
public static <T> ExcelImportResult<T> importExcelVerify(InputStream inputstream, Class<?> pojoClass, ImportParams params) throws Exception Excel 导入 数据源IO流,返回校验结果 字段类型 Integer,Long,Double,Date,String,Boolean- 参数:
file-pojoClass-params-- 返回:
- 抛出:
Exception
-
importExcelVerify
public static <T> ExcelImportResult<T> importExcelVerify(File file, Class<?> pojoClass, ImportParams params) Excel 导入 数据源本地文件,返回校验结果 字段类型 Integer,Long,Double,Date,String,Boolean- 参数:
file-pojoClass-params-- 返回:
- 抛出:
Exception
-
importExcelBySax
public static <T> List<T> importExcelBySax(InputStream inputstream, Class<?> pojoClass, ImportParams params) Excel 通过SAX解析方法,适合大数据导入,不支持图片 导入 数据源IO流,不返回校验结果 导入 字段类型 Integer,Long,Double,Date,String,Boolean- 参数:
inputstream-pojoClass-params-- 返回:
- 抛出:
Exception
-
importExcelBySax
public static void importExcelBySax(InputStream inputstream, Class<?> pojoClass, ImportParams params, IExcelReadRowHanlder hanlder) Excel 通过SAX解析方法,适合大数据导入,不支持图片 导入 数据源本地文件,不返回校验结果 导入 字 段类型 Integer,Long,Double,Date,String,Boolean- 参数:
file-rowRead-- 抛出:
Exception
-
importExcelBySax
Excel 通过SAX解析方法,适合大数据导入,不支持图片 导入 数据源IO流,不返回校验结果 导入 字段类型 Integer,Long,Double,Date,String,Boolean- 参数:
file-rowRead-- 返回:
- 抛出:
Exception
-