public class DocumentTemplateFactory
extends java.lang.Object
| Constructor and Description |
|---|
DocumentTemplateFactory() |
| Modifier and Type | Method and Description |
|---|---|
freemarker.template.Configuration |
getFreemarkerConfiguration()
Retrieves the FreeMarker
Configuration for this factory. |
DocumentTemplate |
getTemplate(java.io.File file) |
DocumentTemplate |
getTemplate(java.io.InputStream inputStream) |
public freemarker.template.Configuration getFreemarkerConfiguration()
Configuration 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.
Configurationpublic DocumentTemplate getTemplate(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic DocumentTemplate getTemplate(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException