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 SummaryConstructors Constructor Description TemplateExporter(java.io.File erbTemplateFile)
 - 
Method SummaryAll 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- 
renderpublic java.lang.String render(nuix.Item item) 
 - 
renderpublic java.lang.String render(nuix.Item item, java.util.Map<java.lang.String,java.lang.Object> data)
 - 
renderToFilepublic 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
 
 - 
renderToFilepublic 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
 
 - 
renderToPdfpublic 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
 
 - 
htmlToPdfpublic static void htmlToPdf(java.lang.String htmlSource, java.io.File outputPdfPath)
 - 
htmlToPdfpublic static void htmlToPdf(java.lang.String htmlSource, java.lang.String outputPdfPath)
 
- 
 
-