PageMixer API - 3.1

jp.ne.dti.lares.foozy.pagemixer.mixer
Class Renderer

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.mixer.Renderer
All Implemented Interfaces:
Consumer

public class Renderer
extends java.lang.Object
implements Consumer

Render token sequence to java.io.Writer.

This consumer renders token sequence on specified java.io.Writer.


Constructor Summary
Renderer(java.io.Writer writer)
          Create renderring consumer.
 
Method Summary
 void clear()
          Do nothing.
 void consume(ConsumerContext context, Token token)
          Render specified token to writer.
 void flush(ConsumerContext context)
          Flush writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Renderer

public Renderer(java.io.Writer writer)
Create renderring consumer.
Parameters:
writer - on which content is written
Method Detail

consume

public void consume(ConsumerContext context,
                    Token token)
             throws MixingIOException
Render specified token to writer.
Specified by:
consume in interface Consumer
Parameters:
context - context processing depends on
token - token to be rendered
Throws:
MixingIOException - IOException is thrown

flush

public void flush(ConsumerContext context)
           throws MixingIOException
Flush writer.
Specified by:
flush in interface Consumer
Parameters:
context - context processing depends on
Throws:
MixingIOException - IOException is thrown

clear

public void clear()
Do nothing.
Specified by:
clear in interface Consumer

PageMixer API - 3.1