Interface IDumper
- All Known Implementing Classes:
AbstractDumper,AbstractProjectDumper,EclipseProjectDumper,JavaMainDumper,MavenProjectDumper
public interface IDumper
API of dumper. A dumper is enable to dump the whole context when report is generated :
- the document template of the report.
- the data context which can be exported as JSON.
- the
FieldsMetadatawhich can be exported as XML.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddump(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, DumperOptions options, 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.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.fr.opensagres.xdocreport.converter.MimeMappingReturns mime mapping switch the kind of the dumper.
-
Method Details
-
dump
void dump(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, DumperOptions options, OutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException 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.- Parameters:
report- theIXDocReportto dump.context- theIContextto dump.options- the dumper options.out- the output stream where dump must be written.- Throws:
IOExceptionfr.opensagres.xdocreport.core.XDocReportException
-
dump
void dump(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext context, DumperOptions option, OutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException 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.- Parameters:
report- theIXDocReportto dump.documentIn- theInputStreamof the report.context- theIContextto dump.options- the dumper options.out- the output stream where dump must be written.- Throws:
IOExceptionfr.opensagres.xdocreport.core.XDocReportException
-
getMimeMapping
fr.opensagres.xdocreport.converter.MimeMapping getMimeMapping()Returns mime mapping switch the kind of the dumper.- Returns:
-