Package org.mapfish.print.output
Class JasperReportImageOutputFormat
java.lang.Object
org.mapfish.print.output.AbstractJasperReportOutputFormat
org.mapfish.print.output.JasperReportImageOutputFormat
- All Implemented Interfaces:
OutputFormat
public final class JasperReportImageOutputFormat
extends AbstractJasperReportOutputFormat
implements OutputFormat
An PDF output format that uses Jasper reports to generate the result.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mapfish.print.output.AbstractJasperReportOutputFormat
AbstractJasperReportOutputFormat.Print -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExport(OutputStream outputStream, AbstractJasperReportOutputFormat.Print print) Export the report to the output stream.The content type of the output.The file suffix to use when writing to a file.voidsetFileSuffix(String fileSuffix) Methods inherited from class org.mapfish.print.output.AbstractJasperReportOutputFormat
getJasperPrint, printMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mapfish.print.output.OutputFormat
print
-
Field Details
-
IMAGE_TYPES
-
-
Constructor Details
-
JasperReportImageOutputFormat
public JasperReportImageOutputFormat()
-
-
Method Details
-
getContentType
Description copied from interface:OutputFormatThe content type of the output.- Specified by:
getContentTypein interfaceOutputFormat
-
getFileSuffix
Description copied from interface:OutputFormatThe file suffix to use when writing to a file.- Specified by:
getFileSuffixin interfaceOutputFormat
-
setFileSuffix
-
doExport
protected void doExport(OutputStream outputStream, AbstractJasperReportOutputFormat.Print print) throws net.sf.jasperreports.engine.JRException, IOException Description copied from class:AbstractJasperReportOutputFormatExport the report to the output stream.- Specified by:
doExportin classAbstractJasperReportOutputFormat- Parameters:
outputStream- the output stream to export toprint- the report- Throws:
net.sf.jasperreports.engine.JRExceptionIOException
-