public class ExcelKit extends Object
| 构造器和说明 |
|---|
ExcelKit() |
| 限定符和类型 | 方法和说明 |
|---|---|
static LinkedHashMap<String,ExcelReadHandle> |
excelReadInFile(String filePath,
HashMap<Integer,Integer[]> continueRowMap)
读取excel文件数据
|
static void |
excelWriteToFile(Excel excel,
String filePath)
写出excel到文件
|
static void |
excelWriteToResponse(javax.servlet.http.HttpServletResponse response,
Excel excel,
String fileName)
导出数据流到响应体中
|
public static LinkedHashMap<String,ExcelReadHandle> excelReadInFile(String filePath, HashMap<Integer,Integer[]> continueRowMap) throws IOException
filePath - 文件路径continueRowMap - 多单元根据那些列为空来忽略行数据(可为空,如 mapContinueRow.put(1,new Integer[]{1, 3}); 第一个表格从1、3列为空就忽略)IOExceptionpublic static void excelWriteToFile(Excel excel, String filePath) throws Exception
excel - 导出信息filePath - 文件路径ExceptionCopyright © 2019. All rights reserved.