Class DumpHelper

java.lang.Object
fr.opensagres.xdocreport.document.dump.DumpHelper

public class DumpHelper extends Object
Dump helper.
  • Field Details

  • Constructor Details

    • DumpHelper

      public DumpHelper()
  • Method Details

    • toDocumentAsBinary64

      public static String toDocumentAsBinary64(IXDocReport report) throws IOException
      Parameters:
      report -
      Returns:
      Throws:
      IOException
    • getDocument

      public static InputStream getDocument(IXDocReport report) throws IOException
      Throws:
      IOException
    • generateDocumentEntry

      public static void generateDocumentEntry(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, String src, File baseDir, ZipOutputStream out) throws IOException
      Throws:
      IOException
    • generateDocumentFile

      public static void generateDocumentFile(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, File srcDir) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • generateDocumentZipEntry

      public static void generateDocumentZipEntry(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) throws IOException
      Throws:
      IOException
    • getClassName

      public static String getClassName(IXDocReport report)
    • getClassNameFile

      public static String getClassNameFile(fr.opensagres.xdocreport.template.IContext dumpContext)
    • toJSON

      public static String toJSON(fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar)
    • toJSON

      public static String toJSON(fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, boolean formatAsJavaString)
    • generateJSONEntry

      public static void generateJSONEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, fr.opensagres.xdocreport.template.IContext dumpContext, String resourcesSrcPath, File baseDir, ZipOutputStream out) throws IOException
      Throws:
      IOException
    • generateJSONFile

      public static void generateJSONFile(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, fr.opensagres.xdocreport.template.IContext dumpContext, File srcDir) throws IOException
      Throws:
      IOException
    • generateJSONZipEntry

      public static void generateJSONZipEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) throws IOException
      Throws:
      IOException
    • getJSONFileName

      public static String getJSONFileName(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext)
    • generateFieldsMetadataEntry

      public static void generateFieldsMetadataEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext, String resourcesSrcPath, File baseDir, ZipOutputStream out) throws IOException
      Throws:
      IOException
    • generateFieldsMetadataFile

      public static void generateFieldsMetadataFile(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext, File srcDir) throws IOException
      Throws:
      IOException
    • generateFieldsMetadataZipEntry

      public static void generateFieldsMetadataZipEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) throws IOException
      Throws:
      IOException
    • createDumpContext

      public static fr.opensagres.xdocreport.template.IContext createDumpContext(IXDocReport report, fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, DumperOptions option) throws IOException
      Throws:
      IOException
    • generate

      public static void generate(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, OutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • generateFile

      public static void generateFile(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, File javaFile) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • generateZipEntry

      public static void generateZipEntry(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, String entryName, ZipOutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException
    • generateEntry

      public static void generateEntry(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, String entryName, File baseDir, ZipOutputStream out) throws IOException, fr.opensagres.xdocreport.core.XDocReportException
      Throws:
      IOException
      fr.opensagres.xdocreport.core.XDocReportException