Package com.axelor.text
Class StringTemplates
- java.lang.Object
-
- com.axelor.text.StringTemplates
-
-
Constructor Summary
Constructors Constructor Description StringTemplates()
StringTemplates(char delimiterStartChar, char delimiterStopChar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Template
from(File file)
Create a newTemplate
instance from the given template file.Template
from(Reader reader)
Create a newTemplate
instance from the given reader.Template
fromText(String text)
Create a newTemplate
instance from the given template text.StringTemplates
withLocale(Locale locale)
-
-
-
Method Detail
-
withLocale
public StringTemplates withLocale(Locale locale)
-
fromText
public Template fromText(String text)
Description copied from interface:Templates
Create a newTemplate
instance from the given template text.
-
from
public Template from(File file) throws IOException
Description copied from interface:Templates
Create a newTemplate
instance from the given template file.- Specified by:
from
in interfaceTemplates
- Parameters:
file
- the template file- Returns:
- an instance of
Template
- Throws:
IOException
- if file read throwsIOException
-
from
public Template from(Reader reader) throws IOException
Description copied from interface:Templates
Create a newTemplate
instance from the given reader.- Specified by:
from
in interfaceTemplates
- Parameters:
reader
- theReader
to read the template- Returns:
- an instance of
Template
- Throws:
IOException
- if reader throwsIOException
-
-