public abstract class ExcelImportUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.centit.support.common.LeftRightPair<ExcelTypeEnum,InputStream> |
checkExcelInputStreamType(InputStream input)
判断 excel流类型
|
static org.apache.poi.ss.usermodel.Cell |
getCell(org.apache.poi.ss.usermodel.Sheet sheet,
int row,
int col) |
static String |
getCellString(org.apache.poi.ss.usermodel.Cell cell) |
static Object |
getCellValue(org.apache.poi.ss.usermodel.Cell cell)
获取 excel 表格单元中的数据
|
static String[] |
loadColumnsFromExcel(String filePath,
int sheetIndex) |
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
int[] columnList,
int[] rowList) |
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
int beginCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
int beginCol,
int endCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
int beginCol,
int endCol,
int beginRow,
int endRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
int[] columnList,
int[] rowList) |
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
int beginCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
int beginCol,
int endCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
int beginCol,
int endCol,
int beginRow,
int endRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(String filePath,
int sheetIndex,
int[] columnList,
int[] rowList) |
static List<String[]> |
loadDataFromExcel(String filePath,
int sheetIndex,
int beginCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(String filePath,
int sheetIndex,
int beginCol,
int endCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(String filePath,
int sheetIndex,
int beginCol,
int endCol,
int beginRow,
int endRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(String filePath,
String sheetName,
int[] columnList,
int[] rowList) |
static List<String[]> |
loadDataFromExcel(String filePath,
String sheetName,
int beginCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(String filePath,
String sheetName,
int beginCol,
int endCol,
int beginRow)
所有的行列都是 0 Base的
|
static List<String[]> |
loadDataFromExcel(String filePath,
String sheetName,
int beginCol,
int endCol,
int beginRow,
int endRow)
所有的行列都是 0 Base的
|
static List<Map<String,Object>> |
loadMapFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
Map<Integer,String> fieldDesc,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
Map<Integer,String> fieldDesc,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcel(String filePath,
int sheetIndex,
Map<Integer,String> fieldDesc,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcel(String filePath,
int sheetIndex,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcel(String filePath,
String sheetName,
Map<Integer,String> fieldDesc,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcel(String filePath,
String sheetName,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
int sheetIndex) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
int sheetIndex,
int headerRow,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
int sheetIndex,
int headerRow,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
int sheetIndex,
int headerRow,
int beginRow,
int endRow,
int beginColumn,
int endColumn) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
int sheetIndex,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
String sheetName) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
String sheetName,
int headerRow,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
String sheetName,
int headerRow,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
String sheetName,
int headerRow,
int beginRow,
int endRow,
int beginColumn,
int endColumn) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(InputStream excelFile,
String sheetName,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(String filePath,
int sheetIndex) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(String filePath,
int sheetIndex,
int headerRow,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(String filePath,
int sheetIndex,
int headerRow,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(String filePath,
String sheetName) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(String filePath,
String sheetName,
int headerRow,
int beginRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheet(String filePath,
String sheetName,
int headerRow,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheetUseIndexAsKey(InputStream excelFile,
int sheetIndex,
int beginRow,
int endRow,
boolean userUpMergeCell) |
static List<Map<String,Object>> |
loadMapFromExcelSheetUseIndexAsKey(InputStream excelFile,
String sheetName,
int beginRow,
int endRow,
boolean userUpMergeCell) |
static List<Map<String,Object>> |
loadMapFromExcelSheetUseMergeCell(InputStream excelFile,
int sheetIndex,
int headerRow,
int beginRow,
int endRow,
int beginColumn,
int endColumn) |
static List<Map<String,Object>> |
loadMapFromExcelSheetUseMergeCell(InputStream excelFile,
int sheetIndex,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static List<Map<String,Object>> |
loadMapFromExcelSheetUseMergeCell(InputStream excelFile,
String sheetName,
int headerRow,
int beginRow,
int endRow,
int beginColumn,
int endColumn) |
static List<Map<String,Object>> |
loadMapFromExcelSheetUseMergeCell(InputStream excelFile,
String sheetName,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static <T> List<T> |
loadObjectFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow) |
static <T> List<T> |
loadObjectFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
int sheetIndex,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static <T> List<T> |
loadObjectFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow) |
static <T> List<T> |
loadObjectFromExcel(InputStream excelFile,
ExcelTypeEnum excelType,
String sheetName,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static <T> List<T> |
loadObjectFromExcel(String filePath,
int sheetIndex,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow) |
static <T> List<T> |
loadObjectFromExcel(String filePath,
int sheetIndex,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static <T> List<T> |
loadObjectFromExcel(String filePath,
String sheetName,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow) |
static <T> List<T> |
loadObjectFromExcel(String filePath,
String sheetName,
Class<T> beanType,
Map<Integer,String> fieldDesc,
int beginRow,
int endRow) |
static Map<Integer,String> |
mapColumnIndex(Map<String,String> fieldDesc) |
static int |
mapColumnIndex(String column)
将Excel的列编号转换成数值
|
static String |
mapIndexColumn(int ind) |
static void |
setObjectFieldValue(Object object,
com.centit.support.common.JavaBeanField field,
org.apache.poi.ss.usermodel.Cell cell) |
public static void setObjectFieldValue(Object object, com.centit.support.common.JavaBeanField field, org.apache.poi.ss.usermodel.Cell cell)
public static int mapColumnIndex(String column)
column - 编号public static String mapIndexColumn(int ind)
public static Object getCellValue(org.apache.poi.ss.usermodel.Cell cell)
cell - 单元public static org.apache.poi.ss.usermodel.Cell getCell(org.apache.poi.ss.usermodel.Sheet sheet,
int row,
int col)
public static String getCellString(org.apache.poi.ss.usermodel.Cell cell)
public static <T> List<T> loadObjectFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetName - sheet名称 如果为空为 第一个页面beanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(String filePath, String sheetName, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型filePath - 文件名,通过后缀名判断excel版本号sheetName - sheet名称 如果为空为 第一个页面beanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetName - sheet名称 如果为空为 第一个页面beanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(String filePath, String sheetName, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型filePath - 文件名,通过后缀名判断excel版本号sheetName - sheet名称 如果为空为 第一个页面beanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetIndex - sheet 序号 0 basebeanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(String filePath, int sheetIndex, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型filePath - 文件名,通过后缀名判断excel版本号sheetIndex - sheet 序号 0 basebeanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetIndex - sheet 序号 0 basebeanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static <T> List<T> loadObjectFromExcel(String filePath, int sheetIndex, Class<T> beanType, Map<Integer,String> fieldDesc, int beginRow) throws IllegalAccessException, InstantiationException, IOException
T - 返回的对象类型filePath - 文件名,通过后缀名判断excel版本号sheetIndex - sheet 序号 0 basebeanType - 对象类型fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IllegalAccessException - 异常InstantiationException - 异常IOException - 异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, int[] columnList, int[] rowList) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetName - 读取的页面名称columnList - 读取的列rowList - 读取的行IOException - Stream操作异常public static List<String[]> loadDataFromExcel(String filePath, String sheetName, int[] columnList, int[] rowList) throws IOException
IOExceptionpublic static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, int[] columnList, int[] rowList) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetIndex - 读取的页面序号 0 basecolumnList - 读取的列rowList - 读取的行IOException - 异常public static List<String[]> loadDataFromExcel(String filePath, int sheetIndex, int[] columnList, int[] rowList) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetIndex - 读取的页面序号 0 basecolumnList - 读取的列rowList - 读取的行IOException - 异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, int beginCol, int endCol, int beginRow, int endRow) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetIndex - 读取的页面序号 0 basebeginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowendRow - 起始行 不包含 endRowIOException - 异常public static List<String[]> loadDataFromExcel(String filePath, int sheetIndex, int beginCol, int endCol, int beginRow, int endRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetIndex - 读取的页面序号 0 basebeginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowendRow - 起始行 不包含 endRowIOException - 异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, int beginCol, int endCol, int beginRow, int endRow) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetName - 读取的页面名称 , 如果为空则 读取第一个页面beginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowendRow - 起始行 不包含 endRowIOException - 异常public static List<String[]> loadDataFromExcel(String filePath, String sheetName, int beginCol, int endCol, int beginRow, int endRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetName - 读取的页面名称 , 如果为空则 读取第一个页面beginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowendRow - 起始行 不包含 endRowIOException - 异常public static com.centit.support.common.LeftRightPair<ExcelTypeEnum,InputStream> checkExcelInputStreamType(InputStream input) throws IOException
input - excelStreamInputIOException - IO异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, int beginCol, int endCol, int beginRow) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetIndex - 读取的页面序号 0 basebeginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(String filePath, int sheetIndex, int beginCol, int endCol, int beginRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetIndex - 读取的页面序号 0 basebeginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, int beginCol, int endCol, int beginRow) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetName - 读取的页面名称beginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(String filePath, String sheetName, int beginCol, int endCol, int beginRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetName - 读取的页面名称beginCol - 起始列 包含 beginColendCol - 终止列 不包含 endColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, int beginCol, int beginRow) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetIndex - 读取的页面序号 0 basebeginCol - 起始列 包含 beginColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(String filePath, int sheetIndex, int beginCol, int beginRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetIndex - 读取的页面序号 0 basebeginCol - 起始列 包含 beginColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, int beginCol, int beginRow) throws IOException
excelFile - excel 文件流excelType - excel 版本 2003 还是新版本sheetName - 读取的页面名称beginCol - 起始列 包含 beginColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<String[]> loadDataFromExcel(String filePath, String sheetName, int beginCol, int beginRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetName - 读取的页面名称beginCol - 起始列 包含 beginColbeginRow - 起始行 包含 beginRowIOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(String filePath, String sheetName) throws IOException
filePath - excel 文件名sheetName - sheet 名称IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(String filePath, int sheetIndex) throws IOException
filePath - excel 文件名sheetIndex - sheetIndex 0 baseIOException - 异常public static String[] loadColumnsFromExcel(String filePath, int sheetIndex) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcelSheet(String filePath, String sheetName, int headerRow, int beginRow) throws IOException
filePath - excel 文件名sheetName - sheet 名称headerRow - 属性名行 0 basebeginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(String filePath, int sheetIndex, int headerRow, int beginRow) throws IOException
filePath - excel 文件名sheetIndex - sheetIndex 0 baseheaderRow - 属性名行 0 basebeginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(String filePath, String sheetName, int headerRow, int beginRow, int endRow) throws IOException
filePath - excel 文件名sheetName - sheet 名称headerRow - 属性名行 0 basebeginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(String filePath, int sheetIndex, int headerRow, int beginRow, int endRow) throws IOException
filePath - excel 文件名sheetIndex - sheetIndex 0 baseheaderRow - 属性名行 0 basebeginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, String sheetName) throws IOException
excelFile - excel 文件名sheetName - sheet 名称IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, int sheetIndex) throws IOException
excelFile - excel 文件名sheetIndex - sheetIndex 0 baseIOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, String sheetName, int headerRow, int beginRow) throws IOException
excelFile - excel 文件名sheetName - sheet 名称headerRow - 属性名行 0 basebeginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, int sheetIndex, int headerRow, int beginRow) throws IOException
excelFile - excel 文件名sheetIndex - sheetIndex 0 baseheaderRow - 属性名行 0 basebeginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, String sheetName, int headerRow, int beginRow, int endRow) throws IOException
excelFile - excel 文件名sheetName - sheet 名称headerRow - 属性名行 0 basebeginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, int sheetIndex, int headerRow, int beginRow, int endRow) throws IOException
excelFile - excel 文件名sheetIndex - sheetIndex 0 baseheaderRow - 属性名行 0 basebeginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, String sheetName, int headerRow, int beginRow, int endRow, int beginColumn, int endColumn) throws IOException
excelFile - excel 文件名sheetName - sheet 名称headerRow - 属性名行 0 basebeginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含beginColumn - 起始列 0 base 包含endColumn - 结束列 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, int sheetIndex, int headerRow, int beginRow, int endRow, int beginColumn, int endColumn) throws IOException
excelFile - excel 文件名sheetIndex - sheetIndex 0 baseheaderRow - 属性名行 0 basebeginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含beginColumn - 起始列 0 base 包含endColumn - 结束列 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheetUseMergeCell(InputStream excelFile, int sheetIndex, int headerRow, int beginRow, int endRow, int beginColumn, int endColumn) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcelSheetUseMergeCell(InputStream excelFile, String sheetName, int headerRow, int beginRow, int endRow, int beginColumn, int endColumn) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcelSheetUseIndexAsKey(InputStream excelFile, String sheetName, int beginRow, int endRow, boolean userUpMergeCell) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcelSheetUseIndexAsKey(InputStream excelFile, int sheetIndex, int beginRow, int endRow, boolean userUpMergeCell) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, int sheetIndex, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
excelFile - excel 文件名sheetIndex - sheetIndex 0 basefieldDesc - 字段对应关系endRow - 结束行包含beginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheet(InputStream excelFile, String sheetName, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
excelFile - excel 文件名sheetName - sheetIndex 0 basefieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcelSheetUseMergeCell(InputStream excelFile, int sheetIndex, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcelSheetUseMergeCell(InputStream excelFile, String sheetName, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
IOExceptionpublic static List<Map<String,Object>> loadMapFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetName - sheet名称 如果为空为 第一个页面fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(String filePath, String sheetName, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetName - sheet名称 如果为空为 第一个页面fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(InputStream excelFile, ExcelTypeEnum excelType, String sheetName, Map<Integer,String> fieldDesc, int beginRow) throws IOException
excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetName - sheet名称 如果为空为 第一个页面fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(String filePath, String sheetName, Map<Integer,String> fieldDesc, int beginRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetName - sheet名称 如果为空为 第一个页面fieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetIndex - sheet 序号 0 basefieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(String filePath, int sheetIndex, Map<Integer,String> fieldDesc, int beginRow, int endRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetIndex - sheet 序号 0 basefieldDesc - 字段对应关系beginRow - 起始行 0 base 包含endRow - 结束行 0 base 不包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(InputStream excelFile, ExcelTypeEnum excelType, int sheetIndex, Map<Integer,String> fieldDesc, int beginRow) throws IOException
excelFile - 文件流excelType - excel 版本 2003 还是新版本sheetIndex - sheet 序号 0 basefieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IOException - 异常public static List<Map<String,Object>> loadMapFromExcel(String filePath, int sheetIndex, Map<Integer,String> fieldDesc, int beginRow) throws IOException
filePath - 文件名,通过后缀名判断excel版本号sheetIndex - sheet 序号 0 basefieldDesc - 字段对应关系beginRow - 起始行 0 base 包含IOException - 异常Copyright © 2025 江苏南大先腾信息产业股份有限公司. All rights reserved.