public class DestinationHelper
extends java.lang.Object
Destination
interface}Constructor and Description |
---|
DestinationHelper(Destination helpee) |
Modifier and Type | Method and Description |
---|---|
void |
closeAndNotify()
Close the destination and notify all registered listeners that it has been closed.
|
java.util.List<Action> |
getListeners() |
void |
onClose(Action listener)
Register a listener to be notified when this destination is closed
|
public DestinationHelper(Destination helpee)
public final void onClose(Action listener)
listener
- an object to be notified when writing to the destination
is successfully completedpublic void closeAndNotify() throws SaxonApiException
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.SaxonApiException
- if the close() method throws SaxonApiException
.public java.util.List<Action> getListeners()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.