net.sf.jelly.apt
Interface TemplateOutput<B extends TemplateBlock>

All Known Implementing Classes:
FreemarkerTemplateBlock, JellyTemplateOutput

public interface TemplateOutput<B extends TemplateBlock>

Output for a template.

Author:
Ryan Heaton

Method Summary
 void redirect(B block, java.io.Writer writer)
          Redirect the template output to a specified writer.
 void write(B block)
          Write a block of template code to the output.
 void write(java.lang.String value)
          Write a value to the template output.
 

Method Detail

redirect

void redirect(B block,
              java.io.Writer writer)
              throws java.io.IOException,
                     TemplateException
Redirect the template output to a specified writer.

Parameters:
block - The block to redirect.
writer - The writer to which to redirect the output.
Throws:
java.io.IOException
TemplateException

write

void write(B block)
           throws java.io.IOException,
                  TemplateException
Write a block of template code to the output.

Parameters:
block - The block of template code to write.
Throws:
java.io.IOException
TemplateException

write

void write(java.lang.String value)
           throws java.io.IOException,
                  TemplateException
Write a value to the template output.

Parameters:
value - The value to write.
Throws:
java.io.IOException
TemplateException