Constructor and Description |
---|
AbstractModelBody(Writer defaultWriter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Evaluates the body and writes in the default writer.
|
String |
evaluateAsString()
Evaluates a body and returns it as a string.
|
void |
evaluateWithoutWriting()
Evaluates a body, but discards result.
|
public AbstractModelBody(Writer defaultWriter)
defaultWriter
- The default writer to use.public void evaluate() throws IOException
ModelBody
evaluate
in interface ModelBody
IOException
- If something goes wrong.public String evaluateAsString() throws IOException
ModelBody
evaluateAsString
in interface ModelBody
IOException
- If something goes wrong.public void evaluateWithoutWriting() throws IOException
ModelBody
evaluateWithoutWriting
in interface ModelBody
IOException
- If something goes wrong.Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.