Package net.sf.saxon.s9api
Class DestinationHelper
java.lang.Object
net.sf.saxon.s9api.DestinationHelper
A helper class for implementing the
Destination
interface-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Close the destination and notify all registered listeners that it has been closed.final void
Register a listener to be notified when this destination is closed
-
Constructor Details
-
DestinationHelper
-
-
Method Details
-
onClose
Register a listener to be notified when this destination is closed- Parameters:
listener
- an object to be notified when writing to the destination is successfully completed
-
closeAndNotify
Close the destination and notify all registered listeners that it has been closed. This method is intended for internal use by Saxon. The method first callsclose
to close the destination, then it callsConsumer.accept(T)
on each of the listeners in turn to notify the fact that it has been closed.- Throws:
SaxonApiException
- if the close() method throwsSaxonApiException
.
-
getListeners
-