Interface OutputFormat

All Known Implementing Classes:
AbstractJasperReportOutputFormat, JasperReportExcelOutputFormat, JasperReportImageOutputFormat, JasperReportPDFOutputFormat, JasperReportSvgOutputFormat, MapExportOutputFormat

public interface OutputFormat
Interface for exporting the generated PDF from MapPrinter.

User: jeichar Date: Oct 18, 2010 Time: 1:49:41 PM

  • Method Details

    • getContentType

      String getContentType()
      The content type of the output.
    • getFileSuffix

      String getFileSuffix()
      The file suffix to use when writing to a file.
    • print

      Processor.ExecutionContext print(@Nonnull Map<String,String> mdcContext, PJsonObject spec, Configuration config, File configDir, File taskDirectory, OutputStream outputStream) throws Exception
      Performs the print and writes to the report in the correct format to the outputStream.
      Parameters:
      mdcContext - the MDC context for the current print job.
      spec - 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 to
      Throws:
      Exception