Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## groovy.text
Class TemplateEngine

    java.lang.Object
      groovy.text.TemplateEngine

Direct Known Subclasses:
  GStringTemplateEngine, SimpleTemplateEngine, 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.

Author:
  sam

Constructor Summary
`TemplateEngine()`

Method Summary
`Template` | `createTemplate(File file)`
`abstract Template` | `createTemplate(Reader reader)`
`Template` | `createTemplate(String templateText)`
`Template` | `createTemplate(URL url)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TemplateEngine

    public TemplateEngine()

Method Detail

### createTemplate

    public abstract Template createTemplate(Reader reader)
                                     throws CompilationFailedException,
                                            ClassNotFoundException,
                                            IOException

  Throws:
    `CompilationFailedException`
    `ClassNotFoundException`
    `IOException`

### createTemplate

    public Template createTemplate(String templateText)
                            throws CompilationFailedException,
                                   FileNotFoundException,
                                   ClassNotFoundException,
                                   IOException

  Throws:
    `CompilationFailedException`
    `FileNotFoundException`
    `ClassNotFoundException`
    `IOException`

### createTemplate

    public Template createTemplate(File file)
                            throws CompilationFailedException,
                                   FileNotFoundException,
                                   ClassNotFoundException,
                                   IOException

  Throws:
    `CompilationFailedException`
    `FileNotFoundException`
    `ClassNotFoundException`
    `IOException`

### createTemplate

    public Template createTemplate(URL url)
                            throws CompilationFailedException,
                                   ClassNotFoundException,
                                   IOException

  Throws:
    `CompilationFailedException`
    `ClassNotFoundException`
    `IOException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2003-2008 The Codehaus. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD