net.sf.jooreports.templates
Class DocumentTemplateFactory

java.lang.Object
  extended by net.sf.jooreports.templates.DocumentTemplateFactory

public class DocumentTemplateFactory
extends java.lang.Object


Constructor Summary
DocumentTemplateFactory()
           
 
Method Summary
 freemarker.template.Configuration getFreemarkerConfiguration()
          Retrieves the FreeMarker Configuration for this factory.
 DocumentTemplate getTemplate(java.io.File file)
           
 DocumentTemplate getTemplate(java.io.InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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