net.sf.saxon.s9api
public class SAXDestination extends Object implements Destination
Constructor Summary | |
---|---|
SAXDestination(ContentHandler handler)
Create a SAXDestination, supplying a SAX ContentHandler to which
events will be routed |
Method Summary | |
---|---|
Receiver | getReceiver(Configuration config)
Return a Receiver. |
Parameters: handler the SAX ContentHandler that is to receive the output. If the ContentHandler is also a org.xml.sax.ext.LexicalHandler then it will also receive notification of events such as comments.
Parameters: config The Saxon configuration. This is supplied so that the destination can use information from the configuration (for example, a reference to the name pool) to construct or configure the returned Receiver.
Returns: the Receiver to which events are to be sent.
Throws: net.sf.saxon.s9api.SaxonApiException if the Receiver cannot be created