public abstract class AbstractFileParser<T> extends ExcelHandle
限定符和类型 | 字段和说明 |
---|---|
protected ExcelInitConfig |
excelInitConfig |
downloadPath, excelWorkbookManage, executorTools, port, redisTemplate, tmpPath
构造器和说明 |
---|
AbstractFileParser() |
限定符和类型 | 方法和说明 |
---|---|
void |
download(String fileId,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServletRequest request) |
protected abstract T |
getData(ExcelSheet sheet,
org.apache.poi.ss.usermodel.Row row) |
List<ExcelSheetData> |
getData(String excelId,
InputStream inputStream,
String fileName) |
ExcelImportRes |
importData(String excelId,
InputStream inputStream,
String fileName)
解析多sheet页签
|
ExcelImportRes |
importData(String excelId,
InputStream inputStream,
String fileName,
Map<Serializable,Object> excelParam) |
boolean |
isRowEmpty(org.apache.poi.ss.usermodel.Row row) |
addErrorInfo, addErrorInfo, addErrorInfo, process
protected ExcelInitConfig excelInitConfig
public List<ExcelSheetData> getData(String excelId, InputStream inputStream, String fileName)
public void download(String fileId, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
public ExcelImportRes importData(String excelId, InputStream inputStream, String fileName)
excelId
- inputStream
- fileName
- public ExcelImportRes importData(String excelId, InputStream inputStream, String fileName, Map<Serializable,Object> excelParam)
public boolean isRowEmpty(org.apache.poi.ss.usermodel.Row row)
protected abstract T getData(ExcelSheet sheet, org.apache.poi.ss.usermodel.Row row) throws Exception
Exception
Copyright © 2021. All rights reserved.