Class MapExportOutputFormat

  • All Implemented Interfaces:
    OutputFormat

    public class MapExportOutputFormat
    extends java.lang.Object
    implements OutputFormat
    The MapExportOutputFormat class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      The content type of the output.
      java.lang.String getFileSuffix()
      The file suffix to use when writing to a file.
      Processor.ExecutionContext print​(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)
      Performs the print and writes to the report in the correct format to the outputStream.
      void setContentType​(java.lang.String contentType)  
      void setFileSuffix​(java.lang.String fileSuffix)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapExportOutputFormat

        public MapExportOutputFormat()
    • Method Detail

      • getContentType

        public final java.lang.String getContentType()
        Description copied from interface: OutputFormat
        The content type of the output.
        Specified by:
        getContentType in interface OutputFormat
      • setContentType

        public final void setContentType​(java.lang.String contentType)
      • getFileSuffix

        public final java.lang.String getFileSuffix()
        Description copied from interface: OutputFormat
        The file suffix to use when writing to a file.
        Specified by:
        getFileSuffix in interface OutputFormat
      • setFileSuffix

        public final void setFileSuffix​(java.lang.String fileSuffix)
      • print

        public final 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
        Description copied from interface: OutputFormat
        Performs the print and writes to the report in the correct format to the outputStream.
        Specified by:
        print in interface OutputFormat
        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