Class DumpHelper
java.lang.Object
fr.opensagres.xdocreport.document.dump.DumpHelper
Dump helper.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic fr.opensagres.xdocreport.template.IContextcreateDumpContext(IXDocReport report, fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, DumperOptions option) static voidgenerate(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, OutputStream out) static voidgenerateDocumentEntry(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, String src, File baseDir, ZipOutputStream out) static voidgenerateDocumentFile(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, File srcDir) static voidgenerateDocumentZipEntry(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) static voidgenerateEntry(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, String entryName, File baseDir, ZipOutputStream out) static voidgenerateFieldsMetadataEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext, String resourcesSrcPath, File baseDir, ZipOutputStream out) static voidgenerateFieldsMetadataFile(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext, File srcDir) static voidgenerateFieldsMetadataZipEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) static voidgenerateFile(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, File javaFile) static voidgenerateJSONEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, fr.opensagres.xdocreport.template.IContext dumpContext, String resourcesSrcPath, File baseDir, ZipOutputStream out) static voidgenerateJSONFile(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, fr.opensagres.xdocreport.template.IContext dumpContext, File srcDir) static voidgenerateJSONZipEntry(IXDocReport report, fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) static voidgenerateZipEntry(fr.opensagres.xdocreport.template.ITemplateEngine templateEngine, String templateName, fr.opensagres.xdocreport.template.IContext dumpContext, String entryName, ZipOutputStream out) static StringgetClassName(IXDocReport report) static StringgetClassNameFile(fr.opensagres.xdocreport.template.IContext dumpContext) static InputStreamgetDocument(IXDocReport report) static StringgetJSONFileName(IXDocReport report, fr.opensagres.xdocreport.template.IContext dumpContext) static StringtoDocumentAsBinary64(IXDocReport report) static StringtoJSON(fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar) static StringtoJSON(fr.opensagres.xdocreport.template.IContext context, boolean upperCaseFirstChar, boolean formatAsJavaString)
-
Field Details
-
JAVA_MAIN_DUMP_TEMPLATE
- See Also:
-
-
Constructor Details
-
DumpHelper
public DumpHelper()
-
-
Method Details
-
toDocumentAsBinary64
- Parameters:
report-- Returns:
- Throws:
IOException
-
getDocument
- 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:
FileNotFoundExceptionIOException
-
generateDocumentZipEntry
public static void generateDocumentZipEntry(IXDocReport report, InputStream documentIn, fr.opensagres.xdocreport.template.IContext dumpContext, ZipOutputStream out, String src) throws IOException - Throws:
IOException
-
getClassName
-
getClassNameFile
-
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:
IOExceptionfr.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:
IOExceptionfr.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:
IOExceptionfr.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:
IOExceptionfr.opensagres.xdocreport.core.XDocReportException
-