public abstract class RenderableThunk extends Object
Subclasses should override doRender(Appendable) method to implement the rendering
logic.
| Constructor and Description |
|---|
RenderableThunk() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doRender(Appendable appendable) |
void |
render(Appendable appendable)
Renders the thunk directly to the appendable.
|
String |
renderAsString()
Renders the thunk to the given
Appendable (via render(java.lang.Appendable)) and also stores the
result to a String. |
public final void render(Appendable appendable) throws IOException
IOExceptionprotected abstract void doRender(Appendable appendable) throws IOException
IOExceptionpublic final String renderAsString()
Appendable (via render(java.lang.Appendable)) and also stores the
result to a String.