Class FreemarkerTemplate
- java.lang.Object
-
- com.aventstack.extentreports.templating.FreemarkerTemplate
-
public class FreemarkerTemplate extends Object
-
-
Constructor Summary
Constructors Constructor Description FreemarkerTemplate(freemarker.template.Configuration freemarkerConfiguration)FreemarkerTemplate(Class<?> clazz, String encoding)FreemarkerTemplate(Class<?> clazz, String basePackagePath, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.TemplatecreateTemplate(String templatePath)StringgetSource(freemarker.template.Template template, Map<String,Object> templateMap)voidwriteTemplate(freemarker.template.Template template, Map<String,Object> templateMap, File outputFile)
-
-
-
Method Detail
-
createTemplate
public freemarker.template.Template createTemplate(String templatePath) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, IOException
- Throws:
freemarker.template.TemplateNotFoundExceptionfreemarker.template.MalformedTemplateNameExceptionfreemarker.core.ParseExceptionIOException
-
getSource
public String getSource(freemarker.template.Template template, Map<String,Object> templateMap) throws freemarker.template.TemplateException, IOException
- Throws:
freemarker.template.TemplateExceptionIOException
-
writeTemplate
public void writeTemplate(freemarker.template.Template template, Map<String,Object> templateMap, File outputFile) throws freemarker.template.TemplateException, IOException- Throws:
freemarker.template.TemplateExceptionIOException
-
-