Class TemplateExporter


  • public class TemplateExporter
    extends java.lang.Object
    Experimental class attempting to integrate Ruby ERB templates with Java by using JRuby to compile a Ruby method which is capable of rendering an ERB and injecting it with Java data.
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateExporter​(java.io.File erbTemplateFile)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void htmlToPdf​(java.lang.String htmlSource, java.io.File outputPdfPath)  
      static void htmlToPdf​(java.lang.String htmlSource, java.lang.String outputPdfPath)  
      java.lang.String render​(nuix.Item item)  
      java.lang.String render​(nuix.Item item, java.util.Map<java.lang.String,​java.lang.Object> data)  
      void renderToFile​(nuix.Item item, java.io.File outputFile, java.util.Map<java.lang.String,​java.lang.Object> data)  
      void renderToFile​(nuix.Item item, java.lang.String outputFile, java.util.Map<java.lang.String,​java.lang.Object> data)  
      void renderToPdf​(nuix.Item item, java.io.File outputFile, java.util.Map<java.lang.String,​java.lang.Object> data)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemplateExporter

        public TemplateExporter​(java.io.File erbTemplateFile)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • render

        public java.lang.String render​(nuix.Item item)
      • render

        public java.lang.String render​(nuix.Item item,
                                       java.util.Map<java.lang.String,​java.lang.Object> data)
      • renderToFile

        public void renderToFile​(nuix.Item item,
                                 java.io.File outputFile,
                                 java.util.Map<java.lang.String,​java.lang.Object> data)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • renderToFile

        public void renderToFile​(nuix.Item item,
                                 java.lang.String outputFile,
                                 java.util.Map<java.lang.String,​java.lang.Object> data)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • renderToPdf

        public void renderToPdf​(nuix.Item item,
                                java.io.File outputFile,
                                java.util.Map<java.lang.String,​java.lang.Object> data)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • htmlToPdf

        public static void htmlToPdf​(java.lang.String htmlSource,
                                     java.io.File outputPdfPath)
      • htmlToPdf

        public static void htmlToPdf​(java.lang.String htmlSource,
                                     java.lang.String outputPdfPath)