com.icl.saxon.output
Class OutputManager

java.lang.Object
  |
  +--com.icl.saxon.output.OutputManager

public class OutputManager
extends java.lang.Object

This class handles the selection and configuration of an Outputter to create serialized output, and maintains a stack of outputters so that when one destination is closed, output reverts to the previous one.


Constructor Summary
OutputManager(NamePool pool)
           
 
Method Summary
 OutputDetails getOutputDetails()
          Get the current output details
 Outputter getOutputter()
          Get the current outputter
 Outputter resetOutputDetails()
          Close the current outputter, and revert to the previous outputter.
 void setNamePool(NamePool pool)
          Set the namePool to be used by this OutputManager
 Outputter setOutputDetails(OutputDetails outputDetails)
          Set a new output writer, supplying the output format details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputManager

public OutputManager(NamePool pool)
Method Detail

setNamePool

public void setNamePool(NamePool pool)
Set the namePool to be used by this OutputManager

setOutputDetails

public Outputter setOutputDetails(OutputDetails outputDetails)
                           throws org.xml.sax.SAXException
Set a new output writer, supplying the output format details.
This affects all further output until resetWriter() is called. Note that it is the caller's responsibility to close the Writer after use: this is best achieved by calling resetWriter().
Parameters:
outputDetails - Details of the new output destination
Returns:
the new current outputter

getOutputDetails

public OutputDetails getOutputDetails()
Get the current output details

getOutputter

public Outputter getOutputter()
Get the current outputter

resetOutputDetails

public Outputter resetOutputDetails()
                             throws org.xml.sax.SAXException
Close the current outputter, and revert to the previous outputter.
Returns:
the outputter that is now current