Package com.axelor.text
Class GroovyTemplates
- java.lang.Object
-
- com.axelor.text.GroovyTemplates
-
-
Constructor Summary
Constructors Constructor Description GroovyTemplates()
-
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.
-
-
-
Method Detail
-
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
-
-