Class InputBase
java.lang.Object
org.apache.velocity.runtime.directive.Directive
org.apache.velocity.runtime.directive.InputBase
- All Implemented Interfaces:
Cloneable
,DirectiveConstants
Base class for directives which do input operations
(e.g.
#include()
, #parse()
, etc.).- Since:
- 1.4
- Author:
- Daniel Rall
-
Field Summary
Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants
BLOCK, LINE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getInputEncoding
(InternalContextAdapter context) Decides the encoding used during input processing of this directive.Methods inherited from class org.apache.velocity.runtime.directive.Directive
checkArgs, getColumn, getLine, getName, getScopeName, getTemplate, getTemplateName, getType, init, isScopeProvided, makeScope, postRender, preRender, render, setLocation, setLocation
-
Constructor Details
-
InputBase
public InputBase()
-
-
Method Details
-
getInputEncoding
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 benull
if we are processing a stream....- Parameters:
context
- The context to derive the default input encoding from.- Returns:
- The encoding to use when processing this directive.
-