org.apache.velocity.runtime.directive
Class InputBase
- Cloneable, DirectiveConstants
public abstract class InputBase
Base class for directives which do input operations
(e.g. #include()
, #parse()
, etc.).
getInputEncoding
protected String getInputEncoding(InternalContextAdapter context)
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....
context
- The context to derive the default input encoding
from.
- The encoding to use when processing this directive.
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.