Class DestinationHelper

java.lang.Object
net.sf.saxon.s9api.DestinationHelper

public class DestinationHelper extends Object
A helper class for implementing the Destination interface
  • Constructor Details

    • DestinationHelper

      public DestinationHelper(Destination helpee)
  • Method Details

    • onClose

      public final void onClose(Action listener)
      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

      public void closeAndNotify() throws SaxonApiException
      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 calls close to close the destination, then it calls Consumer.accept(T) on each of the listeners in turn to notify the fact that it has been closed.
      Throws:
      SaxonApiException - if the close() method throws SaxonApiException.
    • getListeners

      public List<Action> getListeners()