Class AbstractDumper

java.lang.Object
fr.opensagres.xdocreport.document.dump.AbstractDumper
All Implemented Interfaces:
IDumper
Direct Known Subclasses:
AbstractProjectDumper, JavaMainDumper

public abstract class AbstractDumper extends Object implements IDumper
  • Constructor Details

    • AbstractDumper

      public AbstractDumper()
  • Method Details

    • dump

      public void dump(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, OutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Description copied from interface: IDumper
      Dump the given report and context by using the dumper configured with the given options and generates the result of the dump in the given out. This method must be called only if {@link IXDocReport#setCacheOriginalDocument(true)} is called when report is loaded.
      Specified by:
      dump in interface IDumper
      Parameters:
      report - the IXDocReport to dump.
      context - the IContext to dump.
      option - the dumper options.
      out - the output stream where dump must be written.
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • dump

      public final void dump(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, OutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Description copied from interface: IDumper
      Dump the given report and context by using the dumper configured with the given options and generates the result of the dump in the given out.
      Specified by:
      dump in interface IDumper
      Parameters:
      report - the IXDocReport to dump.
      documentIn - the InputStream of the report.
      context - the IContext to dump.
      out - the output stream where dump must be written.
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • doDump

      protected abstract void doDump(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, OutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException