freemarker.template
Interface TextEncoding
- All Known Implementing Classes:
- FileTemplateCache, FileRetriever, LocalizedFileRetriever
- public interface TextEncoding
Determines a character encoding to be used when retrieving a text file.
- Version:
- $Id: TextEncoding.java,v 1.5 2003/11/03 03:33:32 run2000 Exp $
Method Summary |
java.lang.String |
getEncoding()
Returns the character encoding to be used when reading template files. |
void |
setEncoding(java.lang.String encoding)
Sets the character encoding to be used when reading template files. |
setEncoding
public void setEncoding(java.lang.String encoding)
- Sets the character encoding to be used when reading template files.
- Parameters:
encoding
- the name of the encoding to be used; this will be
passed to the constructor of InputStreamReader
.
getEncoding
public java.lang.String getEncoding()
- Returns the character encoding to be used when reading template files.
- Returns:
- the name of the encoding to be used; this will be
passed to the constructor of
InputStreamReader
.