Skip to content

TemplateManager

Mohammad Badar Hashimi edited this page Jan 26, 2020 · 1 revision

TemplateManager which will merge the template and values together.

Features

java.io.InputStream merge(java.io.InputStream template,
                          java.util.Map<java.lang.String,java.lang.Object> values)
                   throws java.io.IOException
Method to merge template , where template content will be pass as inputSteam

--

boolean merge(java.lang.String templateName,
              java.io.Writer writer,
              java.util.Map<java.lang.String,java.lang.Object> values)
       throws java.io.IOException
Merges a template and puts the rendered stream into the writer. The default encoding that template manager uses to read template files is UTF-8


-- 

boolean merge(java.lang.String templateName,
              java.io.Writer writer,
              java.util.Map<java.lang.String,java.lang.Object> values,
              java.lang.String encodingType)
       throws java.io.IOException
Method to merge template using provided encoding type
Clone this wiki locally