| Constructor and Description |
|---|
GroovyTemplates() |
| Modifier and Type | Method and Description |
|---|---|
Template |
from(File file)
Create a new
Template instance from the given template file. |
Template |
from(Reader reader)
Create a new
Template instance from the given reader. |
Template |
fromText(String text)
Create a new
Template instance from the given template text. |
public Template fromText(String text)
TemplatesTemplate instance from the given template text.public Template from(File file) throws IOException
TemplatesTemplate instance from the given template file.from in interface Templatesfile - the template fileTemplateIOException - if file read throws IOExceptionpublic Template from(Reader reader) throws IOException
TemplatesTemplate instance from the given reader.from in interface Templatesreader - the Reader to read the templateTemplateIOException - if reader throws IOException