Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.xml.output
Class OutputHandler  view OutputHandler download OutputHandler.java

java.lang.Object
  extended bycom.thermidor.xml.output.OutputHandler
Direct Known Subclasses:
AppendHandler, FileHandler, NulHandler, PrintWriterHandler, StringHandler

public abstract class OutputHandler
extends java.lang.Object

The OutputHandler class is the base class for output handlers used by the Output class to manage stack based output.


Nested Class Summary
 class OutputHandler.InvalidInitializationParameter
           
 
Field Summary
protected  java.io.PrintWriter _writer
          The print write that will be used to handle the the output at this point.
static java.lang.String EMPTY
           
 
Constructor Summary
OutputHandler()
           
 
Method Summary
abstract  java.lang.String finish()
          The responsibilty of the finish member function is to handle clean up when the output is popped from the output stack.
abstract  void handle(java.lang.String text)
          Handle the provided string data .
abstract  void start(java.lang.Object initializationData)
          start is called on the output handler to initialize it ready to start processing output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final java.lang.String EMPTY
See Also:
Constant Field Values

_writer

protected java.io.PrintWriter _writer
The print write that will be used to handle the the output at this point.

Constructor Detail

OutputHandler

public OutputHandler()
Method Detail

start

public abstract void start(java.lang.Object initializationData)
                    throws OutputHandler.InvalidInitializationParameter,
                           java.io.IOException
start is called on the output handler to initialize it ready to start processing output.


handle

public abstract void handle(java.lang.String text)
                     throws java.io.IOException
Handle the provided string data .


finish

public abstract java.lang.String finish()
                                 throws java.io.IOException
The responsibilty of the finish member function is to handle clean up when the output is popped from the output stack.