public class FreemarkerTemplate extends Object
| Constructor and Description |
|---|
FreemarkerTemplate(Class<?> clazz,
String encoding) |
FreemarkerTemplate(Class<?> clazz,
String basePackagePath,
String encoding) |
FreemarkerTemplate(freemarker.template.Configuration freemarkerConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
freemarker.template.Template |
createTemplate(String templatePath) |
String |
getSource(freemarker.template.Template template,
Map<String,Object> templateMap) |
void |
writeTemplate(freemarker.template.Template template,
Map<String,Object> templateMap,
File outputFile) |
public FreemarkerTemplate(freemarker.template.Configuration freemarkerConfiguration)
public freemarker.template.Template createTemplate(String templatePath) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, IOException
freemarker.template.TemplateNotFoundExceptionfreemarker.template.MalformedTemplateNameExceptionfreemarker.core.ParseExceptionIOExceptionpublic String getSource(freemarker.template.Template template, Map<String,Object> templateMap) throws freemarker.template.TemplateException, IOException
freemarker.template.TemplateExceptionIOExceptionpublic void writeTemplate(freemarker.template.Template template,
Map<String,Object> templateMap,
File outputFile)
throws freemarker.template.TemplateException,
IOException
freemarker.template.TemplateExceptionIOExceptionCopyright © 2020. All rights reserved.