public abstract class StreamedVar extends Var
Note the difference between this class and SimpleVar
that returns simple string values.
Unlike the SimpleVar
class, the output from this class cannot contain nested variables.
However, this class can be more efficient for variables that produce large amounts of output so that the creation
of large in-memory strings is avoided.
Subclasses must implement the following method:
Constructor and Description |
---|
StreamedVar(String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve(VarResolverSession session,
String arg)
The interface that needs to be implemented for subclasses of
SimpleVar . |
allowNested, allowRecurse, canResolve, doResolve, getName, resolveTo
public StreamedVar(String name)
name
- The variable name (e.g. Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.