Package com.nuix.superutilities.export
Class TemplateExporter
- java.lang.Object
-
- com.nuix.superutilities.export.TemplateExporter
-
public class TemplateExporter extends java.lang.ObjectExperimental 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 voidhtmlToPdf(java.lang.String htmlSource, java.io.File outputPdfPath)static voidhtmlToPdf(java.lang.String htmlSource, java.lang.String outputPdfPath)java.lang.Stringrender(nuix.Item item)java.lang.Stringrender(nuix.Item item, java.util.Map<java.lang.String,java.lang.Object> data)voidrenderToFile(nuix.Item item, java.io.File outputFile, java.util.Map<java.lang.String,java.lang.Object> data)voidrenderToFile(nuix.Item item, java.lang.String outputFile, java.util.Map<java.lang.String,java.lang.Object> data)voidrenderToPdf(nuix.Item item, java.io.File outputFile, java.util.Map<java.lang.String,java.lang.Object> data)
-
-
-
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)
-
-