freemarker.template
Interface Compileable

All Known Implementing Classes:
AbstractTemplate, BinaryData

public interface Compileable

Defines an interface for two ways of compiling a template: from an InputStream, and optionally, a character encoding.

Version:
$Id: Compileable.java,v 1.5 2003/11/03 03:33:31 run2000 Exp $

Method Summary
 void compileFromStream(java.io.InputStream stream)
          Compiles the template from an InputStream, using the platform's default character encoding.
 void compileFromStream(java.io.InputStream stream, java.lang.String encoding)
          Compiles the template from an InputStream, using the specified character encoding.
 

Method Detail

compileFromStream

public void compileFromStream(java.io.InputStream stream)
                       throws java.io.IOException,
                              ParseException
Compiles the template from an InputStream, using the platform's default character encoding. If the template has already been compiled, this method does nothing.
Parameters:
stream - an InputStream from which the template can be read.

compileFromStream

public void compileFromStream(java.io.InputStream stream,
                              java.lang.String encoding)
                       throws java.io.IOException,
                              ParseException
Compiles the template from an InputStream, using the specified character encoding. If the template has already been compiled, this method does nothing.
Parameters:
stream - an InputStream from which the template can be read.
encoding - the text encoding of the InputStream