public class TemplateTransformer extends Object
| Constructor and Description |
|---|
TemplateTransformer(InputStream templateInput,
Map<String,String> variables) |
TemplateTransformer(String template) |
TemplateTransformer(String template,
Map<String,String> variables) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getVariables() |
String |
replaceVariables(String input)
Replaces the variables on an input string
|
String |
transform(String input)
Applies the template on the input string
|
public TemplateTransformer(InputStream templateInput, Map<String,String> variables) throws IOException
IOExceptionpublic TemplateTransformer(String template)
Copyright © 2014. All Rights Reserved.