Class JavaMainDumper

java.lang.Object
fr.opensagres.xdocreport.document.dump.AbstractDumper
fr.opensagres.xdocreport.document.dump.java.JavaMainDumper
All Implemented Interfaces:
IDumper

public class JavaMainDumper extends AbstractDumper
IDumper implementation which dump a report and context to generate a single Java Main class which generates a report :
  • the template document is encoded as binary 64 String.
  • the data context is encoded as binary 64 as JSON.
  • the fields metadata is encoded as binary 64 as XML.
  • Constructor Details

    • JavaMainDumper

      public JavaMainDumper()
  • Method Details

    • getInstance

      public static IDumper getInstance()
    • doDump

      protected 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
      Specified by:
      doDump in class AbstractDumper
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • getMimeMapping

      public fr.opensagres.xdocreport.converter.MimeMapping getMimeMapping()
      Description copied from interface: IDumper
      Returns mime mapping switch the kind of the dumper.
      Returns: