Class PlainTextExportTask

  • All Implemented Interfaces:
    Runnable

    public class PlainTextExportTask
    extends Object
    implements Runnable
    An export task implementation that writes the report into a plain text file.
    Author:
    Thomas Morgner
    • Constructor Detail

      • PlainTextExportTask

        public PlainTextExportTask​(MasterReport report,
                                   ReportProgressDialog dialog,
                                   SwingGuiContext swingGuiContext)
        Creates a new plain text export task.
        Parameters:
        dialog - the progress monitor dialog.
        report - the report that should be exported.
    • Method Detail

      • getPrinterCommandSet

        protected PrinterDriver getPrinterCommandSet​(OutputStream out)
        Returns the printer command set for the given report and export type.
        Parameters:
        out - the output stream.
        Returns:
        The printer command set.
      • run

        public void run()
        Exports the report into a plain text file.
        Specified by:
        run in interface Runnable