ccc.web.rendering
Interface Body

All Known Implementing Classes:
ByteArrayBody, EmptyBody, FileBody, PageBody, ScriptBody, SearchBody

public interface Body

A response body.

Author:
Civic Computing Ltd.

Method Summary
 void write(java.io.OutputStream os, java.nio.charset.Charset charset, Context context, TextProcessor processor)
          Write the body to an OutputStream.
 

Method Detail

write

void write(java.io.OutputStream os,
           java.nio.charset.Charset charset,
           Context context,
           TextProcessor processor)
           throws java.io.IOException
Write the body to an OutputStream.

Parameters:
os - The stream to which the body will be written.
charset - The character set for the output stream.
processor - A text processor for generating markup, etc.
context - The template context.
Throws:
java.io.IOException - - if writing to the output stream fails.


Copyright © 2010. All Rights Reserved.