public class ExportUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exportByType(javax.servlet.http.HttpServletResponse response,
String exportType,
String fileName,
byte[] bytes) |
void |
exportByType(javax.servlet.http.HttpServletResponse response,
String exportType,
String fileName,
List<String> labels,
List<List<String>> valueList)
导出
|
void |
exportCSV(String fileName,
List<String> columnLabel,
List<List<String>> columnValue,
javax.servlet.http.HttpServletResponse response,
String exportType) |
void |
exportExcel(String fileName,
List<String> headerNames,
List<List<String>> values,
javax.servlet.http.HttpServletResponse response,
String exportType)
导出Excel
|
void |
exportJSON(String fileName,
com.alibaba.fastjson.JSONArray jsonArray,
javax.servlet.http.HttpServletResponse response,
String exportType) |
void |
exportTXT(String fileName,
List<String> columnLabel,
List<List<String>> columnValue,
javax.servlet.http.HttpServletResponse response,
String exportType) |
byte[] |
getExportBytesByType(String exportType,
String fileName,
String sheetName,
List<String> labels,
List<List<String>> valueList) |
static ExportUtil |
getInstance() |
public static ExportUtil getInstance()
public byte[] getExportBytesByType(String exportType, String fileName, String sheetName, List<String> labels, List<List<String>> valueList) throws Exception
Exceptionpublic void exportByType(javax.servlet.http.HttpServletResponse response,
String exportType,
String fileName,
byte[] bytes)
throws Exception
Exceptionpublic void exportByType(javax.servlet.http.HttpServletResponse response,
String exportType,
String fileName,
List<String> labels,
List<List<String>> valueList)
throws Exception
exportType - fileName - labels - valueList - Exceptionpublic void exportCSV(String fileName, List<String> columnLabel, List<List<String>> columnValue, javax.servlet.http.HttpServletResponse response, String exportType) throws IOException
IOExceptionpublic void exportJSON(String fileName, com.alibaba.fastjson.JSONArray jsonArray, javax.servlet.http.HttpServletResponse response, String exportType) throws IOException
IOExceptionpublic void exportTXT(String fileName, List<String> columnLabel, List<List<String>> columnValue, javax.servlet.http.HttpServletResponse response, String exportType) throws IOException
IOExceptionCopyright © 2022. All rights reserved.