public class XExcelExporter extends Object
| 构造器和说明 |
|---|
XExcelExporter(XMetadata metadata) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
export(List<?> data,
InputStream template,
OutputStream output) |
void |
export(List<?> data,
InputStream template,
OutputStream output,
ExportCallback cb) |
void |
export(List<?> data,
String templatePath,
OutputStream output)
Excel导出
|
void |
export(List<?> data,
String templatePath,
OutputStream output,
ExportCallback cb) |
ExportCallback |
getExportCallback() |
void |
setExportCallback(ExportCallback callback) |
public XExcelExporter(XMetadata metadata)
public void export(List<?> data, String templatePath, OutputStream output) throws ServiceException
data - 待导出的数据templatePath - 模板文件的路径output - 输出流ServiceExceptionpublic void export(List<?> data, InputStream template, OutputStream output) throws ServiceException
ServiceExceptionpublic void export(List<?> data, String templatePath, OutputStream output, ExportCallback cb) throws ServiceException
ServiceExceptionpublic void export(List<?> data, InputStream template, OutputStream output, ExportCallback cb) throws ServiceException
ServiceExceptionpublic void setExportCallback(ExportCallback callback)
public ExportCallback getExportCallback()
Copyright © 2020. All rights reserved.