Interface OutputFormat

    • Method Detail

      • getContentType

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

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

        Processor.ExecutionContext print​(@Nonnull
                                         java.util.Map<java.lang.String,​java.lang.String> mdcContext,
                                         PJsonObject spec,
                                         Configuration config,
                                         java.io.File configDir,
                                         java.io.File taskDirectory,
                                         java.io.OutputStream outputStream)
                                  throws java.lang.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:
        java.lang.Exception