net.sf.saxon.event
Class Outputter

java.lang.Object
  extended bynet.sf.saxon.event.Outputter
All Implemented Interfaces:
Receiver, Result, SequenceReceiver
Direct Known Subclasses:
ComplexContentOutputter, SequenceOutputter, SimpleContentOutputter

public abstract class Outputter
extends Object
implements SequenceReceiver

This class allows output to be generated. It channels output requests to an Emitter which does the actual writing. This is an abstract class, there are concrete implementions for XML output and text output.

Author:
Field Summary
protected  boolean previousAtomic
           
 
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
 
Constructor Summary
Outputter()
           
 
Method Summary
 NamePool getNamePool()
          Get the namePool in which all name codes can be found
 String getSystemId()
           
 void setDocumentLocator(Locator locator)
          Set locator, to identify position in the document.
 void setNamePool(NamePool pool)
          Set the namePool in which all name codes can be found
 void setSystemId(String systemId)
          Set the System ID of the destination tree
 void setUnparsedEntity(String name, String systemId, String publicId)
          Notify an unparsed entity URI.
 void startDocument()
          Start the output process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.saxon.event.SequenceReceiver
append
 
Methods inherited from interface net.sf.saxon.event.Receiver
attribute, characters, comment, endDocument, endElement, namespace, processingInstruction, startContent, startElement
 

Field Detail

previousAtomic

protected boolean previousAtomic
Constructor Detail

Outputter

public Outputter()
Method Detail

setNamePool

public void setNamePool(NamePool pool)
Description copied from interface: Receiver
Set the namePool in which all name codes can be found

Specified by:
setNamePool in interface Receiver

getNamePool

public NamePool getNamePool()
Description copied from interface: Receiver
Get the namePool in which all name codes can be found

Specified by:
getNamePool in interface Receiver

setSystemId

public void setSystemId(String systemId)
Description copied from interface: Receiver
Set the System ID of the destination tree

Specified by:
setSystemId in interface Receiver

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Result

setDocumentLocator

public void setDocumentLocator(Locator locator)
Description copied from interface: Receiver
Set locator, to identify position in the document. A new locator may be supplied at any time. It is not necessary to supply any locator. If a locator is supplied, it may be used by the Receiver to obtain information about the location of the current event in a source XML document.

Specified by:
setDocumentLocator in interface Receiver

setUnparsedEntity

public void setUnparsedEntity(String name,
                              String systemId,
                              String publicId)
Description copied from interface: Receiver
Notify an unparsed entity URI.

Specified by:
setUnparsedEntity in interface Receiver
Parameters:
name - The name of the unparsed entity
systemId - The system identifier of the unparsed entity
publicId - The public identifier of the unparsed entity

startDocument

public void startDocument()
                   throws TransformerException
Start the output process

Specified by:
startDocument in interface Receiver
Throws:
TransformerException