org.teatrove.tea.runtime
Interface OutputReceiver

All Known Subinterfaces:
Context, UtilityContext
All Known Implementing Classes:
DefaultContext, TestCompiler.Context

public interface OutputReceiver

Defines a simple interface for Tea templates to output information.

Author:
Brian S O'Neill
See Also:
Compiler.getRuntimeReceiver()

Method Summary
 void print(Object obj)
          This method receives the output of a template.
 void write(char[] cbuf)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String str)
           
 void write(String str, int off, int len)
           
 

Method Detail

print

void print(Object obj)
           throws Exception
This method receives the output of a template. NOTE: This method should not be called directly within a template.

Throws:
Exception

write

void write(int c)
           throws IOException
Throws:
IOException

write

void write(char[] cbuf)
           throws IOException
Throws:
IOException

write

void write(char[] cbuf,
           int off,
           int len)
           throws IOException
Throws:
IOException

write

void write(String str)
           throws IOException
Throws:
IOException

write

void write(String str,
           int off,
           int len)
           throws IOException
Throws:
IOException


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.