public abstract class LargeExcelImportUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
parserXSSFSheet(String xlsxFile,
String sheetName,
int beginRow,
Class<T> beanType,
Map<Integer,String> fieldDesc,
Consumer<T> consumer) |
static void |
parserXSSFSheet(String xlsxFile,
String sheetName,
int beginRow,
Consumer<Map<Integer,Object>> consumer) |
static <T> void |
parserXSSFSheet(String xlsxFile,
String sheetName,
int beginRow,
int endRow,
Class<T> beanType,
Map<Integer,String> fieldDesc,
Consumer<T> consumer) |
static void |
parserXSSFSheet(String xlsxFile,
String sheetName,
int beginRow,
int endRow,
Consumer<Map<Integer,Object>> consumer) |
static void |
parserXSSFSheetWithHead(String xlsxFile,
String sheetName,
Consumer<Map<String,Object>> consumer) |
static void |
parserXSSFSheetWithHead(String xlsxFile,
String sheetName,
int headRow,
Consumer<Map<String,Object>> consumer) |
static void |
parserXSSFSheetWithHead(String xlsxFile,
String sheetName,
int headRow,
int beginRow,
Consumer<Map<String,Object>> consumer) |
static void |
parserXSSFSheetWithHead(String xlsxFile,
String sheetName,
int headRow,
int beginRow,
int endRow,
Consumer<Map<String,Object>> consumer)
导入excel文件
|
public static <T> void parserXSSFSheet(String xlsxFile, String sheetName, int beginRow, Class<T> beanType, Map<Integer,String> fieldDesc, Consumer<T> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionpublic static <T> void parserXSSFSheet(String xlsxFile, String sheetName, int beginRow, int endRow, Class<T> beanType, Map<Integer,String> fieldDesc, Consumer<T> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionpublic static void parserXSSFSheet(String xlsxFile, String sheetName, int beginRow, Consumer<Map<Integer,Object>> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionpublic static void parserXSSFSheet(String xlsxFile, String sheetName, int beginRow, int endRow, Consumer<Map<Integer,Object>> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionpublic static void parserXSSFSheetWithHead(String xlsxFile, String sheetName, int headRow, int beginRow, int endRow, Consumer<Map<String,Object>> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
xlsxFile - 文件名称sheetName - sheet名称,也可以为 0, 1, 2 数字 字符串headRow - zero basedbeginRow - zero basedendRow - zero basedconsumer - 消费者函数IOException - 异常org.apache.poi.openxml4j.exceptions.OpenXML4JException - 异常SAXException - 异常public static void parserXSSFSheetWithHead(String xlsxFile, String sheetName, int headRow, int beginRow, Consumer<Map<String,Object>> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionpublic static void parserXSSFSheetWithHead(String xlsxFile, String sheetName, int headRow, Consumer<Map<String,Object>> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionpublic static void parserXSSFSheetWithHead(String xlsxFile, String sheetName, Consumer<Map<String,Object>> consumer) throws IOException, org.apache.poi.openxml4j.exceptions.OpenXML4JException, SAXException
IOExceptionorg.apache.poi.openxml4j.exceptions.OpenXML4JExceptionSAXExceptionCopyright © 2025 江苏南大先腾信息产业股份有限公司. All rights reserved.