|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.s9api.SAXDestination
public class SAXDestination
This class represents a Destination (for example, the destination of the output of a transformation) in which events representing the XML document are sent to a user-supplied SAX2 ContentHandler, as if the ContentHandler were receiving the document directly from an XML parser.
| Constructor Summary | |
|---|---|
SAXDestination(ContentHandler handler)
Create a SAXDestination, supplying a SAX ContentHandler to which events will be routed |
|
| Method Summary | |
|---|---|
void |
close()
Close the destination, allowing resources to be released. |
Receiver |
getReceiver(Configuration config)
Return a Receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAXDestination(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.| Method Detail |
|---|
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
public void close()
throws SaxonApiException
close in interface DestinationSaxonApiException - if any failure occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||