public class WebExcelUtils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
WebExcelUtils.ExcelUploadException |
构造器和说明 |
---|
WebExcelUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
cacheTMPExcel(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String key)
缓存上传的excel文件,自定义设置的时候需要不断拿文件来进行交互
|
static TemplateWorkBook |
customizedDealWithUploadExcel(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.util.Map<java.lang.String,java.lang.Object> paraMap)
把上传的excel转成模板(自定义)
|
static TemplateWorkBook |
dealWithUploadExcel(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
把上传的excel转成模板
|
static TemplateWorkBook |
dealWithUploadExcel(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.util.Map<java.lang.String,java.lang.Object> paraMap)
把上传的excel转成模板
|
static JSONObject |
getExcelConfigBySheet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String sessionID,
int sheetIndex)
生成自定义导入excel相关配置信息
|
static SmartFile |
getExcelFromReq(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static java.lang.String[] |
getSheetsName(java.lang.String sessionID) |
public static JSONObject getExcelConfigBySheet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String sessionID, int sheetIndex) throws java.lang.Exception
req
- res
- sessionID
- sheetIndex
- sheet索引java.lang.Exception
public static java.lang.String[] getSheetsName(java.lang.String sessionID)
public static SmartFile getExcelFromReq(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
java.lang.Exception
public static TemplateWorkBook dealWithUploadExcel(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.util.Map<java.lang.String,java.lang.Object> paraMap) throws java.lang.Exception
req
- http请求res
- http应答paraMap
- 参数java.lang.Exception
public static TemplateWorkBook customizedDealWithUploadExcel(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.util.Map<java.lang.String,java.lang.Object> paraMap) throws java.lang.Exception
req
- http请求res
- http应答paraMap
- 参数java.lang.Exception
public static TemplateWorkBook dealWithUploadExcel(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- http请求res
- http应答java.lang.Exception
public static void cacheTMPExcel(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String key) throws java.lang.Exception
req
- res
- key
- java.lang.Exception