Destinationpublic class SAXDestination extends java.lang.Object implements Destination
| Constructor | Description |
|---|---|
SAXDestination(org.xml.sax.ContentHandler handler) |
Create a SAXDestination, supplying a SAX ContentHandler to which
events will be routed
|
| Modifier and Type | Method | Description |
|---|---|---|
Receiver |
getReceiver(Configuration config) |
Return a Receiver.
|
public SAXDestination(org.xml.sax.ContentHandler handler)
handler - the SAX ContentHandler that is to receive the output. If the
ContentHandler is also a LexicalHandler then it will also receive
notification of events such as comments.public Receiver getReceiver(Configuration config) throws SaxonApiException
getReceiver in interface Destinationconfig - 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.SaxonApiException - if the Receiver cannot be created