Class DocumentTemplateFactory


  • public class DocumentTemplateFactory
    extends java.lang.Object
    • Constructor Detail

      • DocumentTemplateFactory

        public DocumentTemplateFactory()
    • Method Detail

      • getFreemarkerConfiguration

        public freemarker.template.Configuration getFreemarkerConfiguration()
        Retrieves the FreeMarker 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.

        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