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