ccc.web.rendering
Class ScriptBody

java.lang.Object
  extended by ccc.web.rendering.ScriptBody
All Implemented Interfaces:
Body

public class ScriptBody
extends java.lang.Object
implements Body

A body implementation for scripts.

Author:
Civic Computing Ltd.

Constructor Summary
ScriptBody(Script script)
          Constructor.
 
Method Summary
 void write(java.io.OutputStream os, java.nio.charset.Charset charset, Context context, TextProcessor processor)
          Write the body to an OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptBody

public ScriptBody(Script script)
Constructor.

Parameters:
script - The script to invoke.
Method Detail

write

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

Specified by:
write in interface Body
Parameters:
os - The stream to which the body will be written.
charset - The character set for the output stream.
context - The template context.
processor - A text processor for generating markup, etc.


Copyright © 2010. All Rights Reserved.