Constructor and Description |
---|
StringTemplates() |
StringTemplates(char delimiterStartChar,
char delimiterStopChar) |
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 StringTemplates()
public StringTemplates(char delimiterStartChar, char delimiterStopChar)
public Template fromText(String text)
Templates
Template
instance from the given template text.public Template from(File file) throws IOException
Templates
Template
instance from the given template file.from
in interface Templates
file
- the template fileTemplate
IOException
- if file read throws IOException
public Template from(Reader reader) throws IOException
Templates
Template
instance from the given reader.from
in interface Templates
reader
- the Reader
to read the templateTemplate
IOException
- if reader throws IOException