public abstract class POIExcelUploadHandler extends Object
| 构造器和说明 |
|---|
POIExcelUploadHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> List<E> |
excel2Entities(File excelFile,
Class<E> entityClass)
Change excel file to entity list
|
static <E> List<E> |
excel2Entities(File excelFile,
int titleRow,
Class<E> entityClass)
Change excel file to entity list
|
static <E> List<E> |
excel2Entities(InputStream is,
Class<E> entityClass)
Change excel file to entity list
|
static <E> List<E> |
excel2Entities(InputStream is,
int titleRow,
Class<E> entityClass)
Change excel file to entity list
|
public static <E> List<E> excel2Entities(File excelFile, Class<E> entityClass) throws ExcelHandlerException
excelFile - the excel fileentityClass - the entity classExcelHandlerExceptionpublic static <E> List<E> excel2Entities(File excelFile, int titleRow, Class<E> entityClass) throws ExcelHandlerException
excelFile - the excel filetitleRow - the title row numberentityClass - the entity classExcelHandlerExceptionpublic static <E> List<E> excel2Entities(InputStream is, Class<E> entityClass) throws ExcelHandlerException
is - the excel file input streamentityClass - the entity classExcelHandlerExceptionpublic static <E> List<E> excel2Entities(InputStream is, int titleRow, Class<E> entityClass) throws ExcelHandlerException
is - the excel file input streamtitleRow - the title row numberentityClass - the entity classExcelHandlerExceptionCopyright © 2019. All rights reserved.