org.apache.velocity.runtime.directive
abstract public class: InputBase [javadoc |
source]
java.lang.Object
org.apache.velocity.runtime.directive.Directive
org.apache.velocity.runtime.directive.InputBase
All Implemented Interfaces:
Cloneable, DirectiveConstants
Direct Known Subclasses:
Parse, Include
Base class for directives which do input operations
(e.g.
#include(),
#parse(), etc.).
- author:
< - a href="mailto:dlr@finemaltcoding.com">Daniel Rall
- since:
1.4 -
| Method from org.apache.velocity.runtime.directive.InputBase Summary: |
|---|
|
getInputEncoding |
| Method from org.apache.velocity.runtime.directive.InputBase Detail: |
protected String getInputEncoding(InternalContextAdapter context) {
Resource current = context.getCurrentResource();
if (current != null)
{
return current.getEncoding();
}
else
{
return (String) rsvc.getProperty(RuntimeConstants.INPUT_ENCODING);
}
}
Decides the encoding used during input processing of this
directive.
Get the resource, and assume that we use the encoding of the
current template the 'current resource' can be
null if we are processing a stream.... |