public interface Templates
| 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. |
Template fromText(String text)
Template instance from the given template text.text - the template textTemplateTemplate from(File file) throws IOException
Template instance from the given template file.file - the template fileTemplateIOException - if file read throws IOExceptionTemplate from(Reader reader) throws IOException
Template instance from the given reader.reader - the Reader to read the templateTemplateIOException - if reader throws IOException