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 textTemplate
Template from(File file) throws IOException
Template
instance from the given template file.file
- the template fileTemplate
IOException
- if file read throws IOException
Template from(Reader reader) throws IOException
Template
instance from the given reader.reader
- the Reader
to read the templateTemplate
IOException
- if reader throws IOException