org.jamon
Class AbstractRenderer

java.lang.Object
  extended by org.jamon.AbstractRenderer
All Implemented Interfaces:
Renderer

public abstract class AbstractRenderer
extends java.lang.Object
implements Renderer

A simple abstract class which lacks only a Writer to which to render.


Constructor Summary
AbstractRenderer()
           
 
Method Summary
 java.lang.String asString()
          Render this Renderer into a String.
abstract  void renderTo(java.io.Writer p_writer)
          Render to the given writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRenderer

public AbstractRenderer()
Method Detail

renderTo

public abstract void renderTo(java.io.Writer p_writer)
                       throws java.io.IOException
Render to the given writer.

Specified by:
renderTo in interface Renderer
Parameters:
p_writer - the Writer to which to render
Throws:
java.io.IOException - if writing to the Writer throws an IOException

asString

public final java.lang.String asString()
Render this Renderer into a String.

Specified by:
asString in interface Renderer
Returns:
a String that is the result of rendering this Renderer


jamon