public class TemplateDescriptor extends Object
| Constructor and Description |
|---|
TemplateDescriptor()
Creates a new instance of
TemplateDescriptor that should be filtered
and has the default encoding. |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding()
Returns the name of the encoding of the template file (e.g.
|
boolean |
isFiltered()
Returns
true if the template should be filtered and
false otherwise. |
void |
setEncoding(String encoding)
Sets the name of the encoding of the template file.
|
void |
setFiltered(boolean filtered)
Defines whether the template should be filtered (processed by Velocity)
or not.
|
public TemplateDescriptor()
TemplateDescriptor that should be filtered
and has the default encoding.public boolean isFiltered()
true if the template should be filtered and
false otherwise.true if the template should be filtered and
false otherwise.public void setFiltered(boolean filtered)
filtered - true if it should be processed by Velocity and
fales otherwise.public String getEncoding()
us-ascci, utf-8, iso-8859-1).public void setEncoding(String encoding) throws IllegalCharsetNameException, UnsupportedCharsetException
encoding - New value of property encoding.IllegalCharsetNameException - if the given charset name is illegalUnsupportedCharsetException - if no support for the named encoding
is available in this instance of the Java virtual machineCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.