org.peaseplate.chunk
Class AbstractOutputChunk

java.lang.Object
  extended by org.peaseplate.chunk.AbstractChunk
      extended by org.peaseplate.chunk.AbstractOutputChunk
All Implemented Interfaces:
Chunk, OutputStrategy
Direct Known Subclasses:
MessageChunk, PrintChunk

public abstract class AbstractOutputChunk
extends AbstractChunk
implements OutputStrategy


Constructor Summary
AbstractOutputChunk(OutputStrategy outputStrategy, TemplateLocator locator, int line, int column)
           
 
Method Summary
 OutputStrategy getOutputStrategy()
           
 void write(java.io.Writer writer, java.lang.Object object)
          Writes the object
 
Methods inherited from class org.peaseplate.chunk.AbstractChunk
getColumn, getLine, getLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.peaseplate.chunk.Chunk
isEssential, isVisible, render, toString
 

Constructor Detail

AbstractOutputChunk

public AbstractOutputChunk(OutputStrategy outputStrategy,
                           TemplateLocator locator,
                           int line,
                           int column)
Method Detail

getOutputStrategy

public OutputStrategy getOutputStrategy()

write

public void write(java.io.Writer writer,
                  java.lang.Object object)
           throws java.io.IOException
Description copied from interface: OutputStrategy
Writes the object

Specified by:
write in interface OutputStrategy
Parameters:
writer - the writer
object - the object
Throws:
java.io.IOException
See Also:
OutputStrategy.write(java.io.Writer, java.lang.Object)


Copyright © 2008. All Rights Reserved.