Class DefaultJasperReportExportService
- java.lang.Object
-
- de.hybris.platform.cockpit.reports.impl.DefaultJasperReportExportService
-
- All Implemented Interfaces:
JasperReportExportService
public class DefaultJasperReportExportService extends java.lang.Object implements JasperReportExportService
Default implementation ofJasperReportExportService
-
-
Constructor Summary
Constructors Constructor Description DefaultJasperReportExportService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]exportToExcel(net.sf.jasperreports.engine.JasperPrint filledReport)Exports report to Exceljava.awt.image.BufferedImageexportToImage(net.sf.jasperreports.engine.JasperPrint filledReport)Exports report to imagebyte[]exportToPdf(net.sf.jasperreports.engine.JasperPrint filledReport)Exports report to PDFvoidsetExporterFactory(ExporterFactory exporterFactory)
-
-
-
Method Detail
-
exportToExcel
public byte[] exportToExcel(net.sf.jasperreports.engine.JasperPrint filledReport) throws JasperReportExportExceptionDescription copied from interface:JasperReportExportServiceExports report to Excel- Specified by:
exportToExcelin interfaceJasperReportExportService- Parameters:
filledReport- report to export- Returns:
- excel file as byte array
- Throws:
JasperReportExportException- if any problem occur
-
exportToImage
public java.awt.image.BufferedImage exportToImage(net.sf.jasperreports.engine.JasperPrint filledReport) throws JasperReportExportExceptionDescription copied from interface:JasperReportExportServiceExports report to image- Specified by:
exportToImagein interfaceJasperReportExportService- Parameters:
filledReport- report to export- Returns:
- image
- Throws:
JasperReportExportException- if any problem occur
-
exportToPdf
public byte[] exportToPdf(net.sf.jasperreports.engine.JasperPrint filledReport) throws JasperReportExportExceptionDescription copied from interface:JasperReportExportServiceExports report to PDF- Specified by:
exportToPdfin interfaceJasperReportExportService- Parameters:
filledReport- report to export- Returns:
- pdf file as byte array
- Throws:
JasperReportExportException- if any problem occur
-
setExporterFactory
public void setExporterFactory(ExporterFactory exporterFactory)
- Parameters:
exporterFactory- the exporterFactory to set
-
-