net.sf.jelly.apt
Class JellyTemplateOutput

java.lang.Object
  extended by net.sf.jelly.apt.JellyTemplateOutput
All Implemented Interfaces:
TemplateOutput<APTJellyTag>

public class JellyTemplateOutput
extends java.lang.Object
implements TemplateOutput<APTJellyTag>

Output implementation for jelly templates.

Author:
Ryan Heaton

Constructor Summary
JellyTemplateOutput(org.apache.commons.jelly.XMLOutput output)
           
 
Method Summary
 void redirect(APTJellyTag block, java.io.Writer writer)
          Redirect the template output to a specified writer.
 void write(APTJellyTag block)
          Write a block of template code to the output.
 void write(java.lang.String value)
          Write a value to the template output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JellyTemplateOutput

public JellyTemplateOutput(org.apache.commons.jelly.XMLOutput output)
Method Detail

redirect

public void redirect(APTJellyTag block,
                     java.io.Writer writer)
              throws java.io.IOException,
                     TemplateException
Description copied from interface: TemplateOutput
Redirect the template output to a specified writer.

Specified by:
redirect in interface TemplateOutput<APTJellyTag>
Parameters:
block - The block to redirect.
writer - The writer to which to redirect the output.
Throws:
java.io.IOException
TemplateException

write

public void write(APTJellyTag block)
           throws java.io.IOException,
                  TemplateException
Description copied from interface: TemplateOutput
Write a block of template code to the output.

Specified by:
write in interface TemplateOutput<APTJellyTag>
Parameters:
block - The block of template code to write.
Throws:
java.io.IOException
TemplateException

write

public void write(java.lang.String value)
           throws java.io.IOException,
                  TemplateException
Description copied from interface: TemplateOutput
Write a value to the template output.

Specified by:
write in interface TemplateOutput<APTJellyTag>
Parameters:
value - The value to write.
Throws:
java.io.IOException
TemplateException