Package groovy.text
Class TemplateEngine
- java.lang.Object
-
- groovy.text.TemplateEngine
-
- Direct Known Subclasses:
GStringTemplateEngine,MarkupTemplateEngine,SimpleTemplateEngine,StreamingTemplateEngine,XmlTemplateEngine
public abstract class TemplateEngine extends Object
Represents an API to any template engine which is basically a factory of Template instances from a given text input.
-
-
Constructor Summary
Constructors Constructor Description TemplateEngine()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TemplatecreateTemplate(File file)abstract TemplatecreateTemplate(Reader reader)TemplatecreateTemplate(String templateText)TemplatecreateTemplate(URL url)
-
-
-
Method Detail
-
createTemplate
public abstract Template createTemplate(Reader reader) throws org.codehaus.groovy.control.CompilationFailedException, ClassNotFoundException, IOException
- Throws:
org.codehaus.groovy.control.CompilationFailedExceptionClassNotFoundExceptionIOException
-
createTemplate
public Template createTemplate(String templateText) throws org.codehaus.groovy.control.CompilationFailedException, ClassNotFoundException, IOException
- Throws:
org.codehaus.groovy.control.CompilationFailedExceptionClassNotFoundExceptionIOException
-
createTemplate
public Template createTemplate(File file) throws org.codehaus.groovy.control.CompilationFailedException, ClassNotFoundException, IOException
- Throws:
org.codehaus.groovy.control.CompilationFailedExceptionClassNotFoundExceptionIOException
-
createTemplate
public Template createTemplate(URL url) throws org.codehaus.groovy.control.CompilationFailedException, ClassNotFoundException, IOException
- Throws:
org.codehaus.groovy.control.CompilationFailedExceptionClassNotFoundExceptionIOException
-
-