Class AbstractDumper
java.lang.Object
fr.opensagres.xdocreport.document.dump.AbstractDumper
- All Implemented Interfaces:
IDumper
- Direct Known Subclasses:
AbstractProjectDumper,JavaMainDumper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoDump(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, OutputStream out) voiddump(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, OutputStream out) 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.final voiddump(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, OutputStream out) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.opensagres.xdocreport.document.dump.IDumper
getMimeMapping
-
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:IDumperDump 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:
dumpin interfaceIDumper- Parameters:
report- theIXDocReportto dump.context- theIContextto dump.option- the dumper options.out- the output stream where dump must be written.- Throws:
IOExceptionfr.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:IDumperDump 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:
dumpin interfaceIDumper- Parameters:
report- theIXDocReportto dump.documentIn- theInputStreamof the report.context- theIContextto dump.out- the output stream where dump must be written.- Throws:
IOExceptionfr.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:
IOExceptionfr.opensagres.xdocreport.core.XDocReportException
-