public class FreemarkerUtil extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected freemarker.template.Configuration | cfg | 
| Constructor and Description | 
|---|
| FreemarkerUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static File | ftlWrite(File output,
                freemarker.template.Template template,
                InputStream inputStream)Calls ftlWrite that also accepts a key, using the output getName as the key. | 
| static File | ftlWrite(String key,
                File output,
                freemarker.template.Template template,
                InputStream inputStream)Loads properties from user defined properties file, if not available uses resource file
 writes processed template  to file | 
| protected static Properties | loadProperties(InputStream inputStream) | 
| protected static File | writeTemplateToFile(File file,
                                      freemarker.template.Template template,
                                      Properties props) | 
protected freemarker.template.Configuration cfg
public FreemarkerUtil()
public static File ftlWrite(File output, freemarker.template.Template template, InputStream inputStream) throws IOException, freemarker.template.TemplateException
output - template - IOExceptionfreemarker.template.TemplateExceptionpublic static File ftlWrite(String key, File output, freemarker.template.Template template, InputStream inputStream) throws IOException, freemarker.template.TemplateException
key - output - template - IOExceptionfreemarker.template.TemplateExceptionprotected static Properties loadProperties(InputStream inputStream) throws IOException
IOExceptionprotected static File writeTemplateToFile(File file, freemarker.template.Template template, Properties props) throws IOException, freemarker.template.TemplateException
file - template - props - IOExceptionfreemarker.template.TemplateExceptionCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.