public class VelocityModelBody extends AbstractModelBody
Constructor and Description |
---|
VelocityModelBody(org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.ASTBlock body,
Writer defaultWriter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate(Writer writer)
Evaluates the body and writes the result in the writer.
|
evaluate, evaluateAsString, evaluateWithoutWriting
public VelocityModelBody(org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.ASTBlock body, Writer defaultWriter)
context
- The Velocity context.body
- The real body.defaultWriter
- The default writer.public void evaluate(Writer writer) throws IOException
ModelBody
writer
- The writer to write the result into.IOException
- If something goes wrong.Copyright © 2000–2024 Apache Software Foundation. All rights reserved.