public abstract class AbstractDestination extends java.lang.Object implements Destination
Destination
interface}Modifier and Type | Field and Description |
---|---|
protected DestinationHelper |
helper |
Constructor and Description |
---|
AbstractDestination() |
Modifier and Type | Method and Description |
---|---|
void |
closeAndNotify()
Close the destination and notify all registered listeners that it has been closed.
|
java.net.URI |
getDestinationBaseURI()
Get the base URI of the resource being written to this destination
|
void |
onClose(Action listener)
Register a listener to be notified when this destination is closed
|
void |
setDestinationBaseURI(java.net.URI baseURI)
Set the base URI of the resource being written to this destination
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getReceiver
protected DestinationHelper helper
public void setDestinationBaseURI(java.net.URI baseURI)
setDestinationBaseURI
in interface Destination
baseURI
- the base URI to be usedpublic java.net.URI getDestinationBaseURI()
getDestinationBaseURI
in interface Destination
public final void onClose(Action listener)
onClose
in interface Destination
listener
- an object to be notified when writing to the destination
is successfully completedpublic void closeAndNotify() throws SaxonApiException
Destination.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.closeAndNotify
in interface Destination
SaxonApiException
- if the close() method throws SaxonApiException
.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.