public abstract class AbstractJasperReportOutputFormat extends java.lang.Object implements OutputFormat
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractJasperReportOutputFormat.Print
The print information for doing the export.
|
| Constructor and Description |
|---|
AbstractJasperReportOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doExport(java.io.OutputStream outputStream,
AbstractJasperReportOutputFormat.Print print)
Export the report to the output stream.
|
AbstractJasperReportOutputFormat.Print |
getJasperPrint(java.lang.String jobId,
PJsonObject requestData,
Configuration config,
java.io.File configDir,
java.io.File taskDirectory)
Renders the jasper report.
|
void |
print(java.lang.String jobId,
PJsonObject requestData,
Configuration config,
java.io.File configDir,
java.io.File taskDirectory,
java.io.OutputStream outputStream)
Performs the print and writes to the report in the correct format to the outputStream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentType, getFileSuffixprotected abstract void doExport(java.io.OutputStream outputStream,
AbstractJasperReportOutputFormat.Print print)
throws net.sf.jasperreports.engine.JRException,
java.io.IOException
outputStream - the output stream to export toprint - the reportnet.sf.jasperreports.engine.JRExceptionjava.io.IOExceptionpublic final void print(java.lang.String jobId,
PJsonObject requestData,
Configuration config,
java.io.File configDir,
java.io.File taskDirectory,
java.io.OutputStream outputStream)
throws java.lang.Exception
OutputFormatprint in interface OutputFormatjobId - the job IDrequestData - the data from the client, required for writing.config - the configuration object representing the server side configuration.configDir - the directory that contains the configuration, used for resolving resources like images etc...taskDirectory - the temporary directory for this printing task.outputStream - the stream to write the result tojava.lang.Exceptionpublic final AbstractJasperReportOutputFormat.Print getJasperPrint(java.lang.String jobId, PJsonObject requestData, Configuration config, java.io.File configDir, java.io.File taskDirectory) throws net.sf.jasperreports.engine.JRException, java.sql.SQLException, java.util.concurrent.ExecutionException, org.json.JSONException
jobId - the job IDrequestData - the data from the client, required for writing.config - the configuration object representing the server side configuration.configDir - the directory that contains the configuration, used for resolving resources like images etc...taskDirectory - the temporary directory for this printing task.java.util.concurrent.ExecutionExceptionnet.sf.jasperreports.engine.JRExceptionjava.sql.SQLExceptionorg.json.JSONException