Class TemplateManagerImpl
- java.lang.Object
-
- io.mosip.kernel.templatemanager.velocity.impl.TemplateManagerImpl
-
- All Implemented Interfaces:
TemplateManager
public class TemplateManagerImpl extends Object implements TemplateManager
Implementation ofTemplateManagerwhich uses Velocity Template Engine, TemplateManagerImpl will merge the template with values.- Since:
- 01-10-2018
- Version:
- 1.0.0
- Author:
- Abhishek Kumar
-
-
Constructor Summary
Constructors Constructor Description TemplateManagerImpl(org.apache.velocity.app.VelocityEngine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreammerge(InputStream is, Map<String,Object> values)booleanmerge(String templateName, Writer writer, Map<String,Object> values)booleanmerge(String templateName, Writer writer, Map<String,Object> values, String encodingType)
-
-
-
Method Detail
-
merge
public InputStream merge(InputStream is, Map<String,Object> values) throws IOException
- Specified by:
mergein interfaceTemplateManager- Throws:
IOException
-
merge
public boolean merge(String templateName, Writer writer, Map<String,Object> values) throws IOException
- Specified by:
mergein interfaceTemplateManager- Throws:
IOException
-
merge
public boolean merge(String templateName, Writer writer, Map<String,Object> values, String encodingType) throws IOException
- Specified by:
mergein interfaceTemplateManager- Throws:
IOException
-
-