| java.lang.Object net.sf.saxon.event.Emitter
All known Subclasses: net.sf.saxon.event.XMLEmitter, net.sf.saxon.dom.DOMEmitter, net.sf.saxon.event.ContentHandlerProxy,
Emitter | abstract public class Emitter implements Result,Receiver(Code) | | Emitter: This abstract class defines methods that must be implemented by
components that format SAXON output. There is one emitter for XML,
one for HTML, and so on. Additional methods are concerned with
setting options and providing a Writer.
The interface is deliberately designed to be as close as possible to the
standard SAX2 ContentHandler interface, however, it allows additional
information to be made available.
An Emitter is a Receiver, specifically it is a Receiver that can direct output
to a Writer or OutputStream, using serialization properties defined in a Properties
object.
|
getConfiguration | public Configuration getConfiguration()(Code) | | Get the configuration used for this document
|
getOutputProperties | public Properties getOutputProperties()(Code) | | Get the output properties
|
getPipelineConfiguration | public PipelineConfiguration getPipelineConfiguration()(Code) | | Get the pipeline configuration used for this document
|
getSystemId | public String getSystemId()(Code) | | Get the System ID
|
getWriter | public Writer getWriter()(Code) | | Get the output writer
|
makeWriter | protected void makeWriter() throws XPathException(Code) | | Make a Writer for this Emitter to use, given a StreamResult
|
setPipelineConfiguration | public void setPipelineConfiguration(PipelineConfiguration pipe)(Code) | | Set the namePool in which all name codes can be found
|
setStreamResult | public void setStreamResult(StreamResult result) throws XPathException(Code) | | Set the StreamResult acting as the output destination of the Emitter
|
setSystemId | public void setSystemId(String systemId)(Code) | | Set the System ID
|
setUnparsedEntity | public void setUnparsedEntity(String name, String uri, String publicId) throws XPathException(Code) | | Set unparsed entity URI. Needed to satisfy the Receiver interface, but not used,
because unparsed entities can occur only in input documents, not in output documents.
|
setWriter | public void setWriter(Writer writer)(Code) | | Set the output destination as a character stream
|
usesWriter | public boolean usesWriter()(Code) | | Determine whether the Emitter wants a Writer for character output or
an OutputStream for binary output. The standard Emitters all use a Writer, so
this returns true; but a subclass can override this if it wants to use an OutputStream
|
|
|