Package net.sf.jooreports.templates
Class DocumentTemplateFactory
- java.lang.Object
-
- net.sf.jooreports.templates.DocumentTemplateFactory
-
public class DocumentTemplateFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DocumentTemplateFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.Configuration
getFreemarkerConfiguration()
Retrieves the FreeMarkerConfiguration
for this factory.DocumentTemplate
getTemplate(java.io.File file)
DocumentTemplate
getTemplate(java.io.InputStream inputStream)
-
-
-
Method Detail
-
getFreemarkerConfiguration
public freemarker.template.Configuration getFreemarkerConfiguration()
Retrieves the FreeMarkerConfiguration
for this factory.You can use this method to set custom FreeMarker options on the returned
Configuration
, and they will apply to all templates returned by this factory.Any such customizations should be used carefully. Only use this method if you know what you are doing. Limitation: Do not change the default square-bracket Tag Syntax.
- Returns:
- the FreeMarker
Configuration
-
getTemplate
public DocumentTemplate getTemplate(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
getTemplate
public DocumentTemplate getTemplate(java.io.InputStream inputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
-