public class RawDestination extends AbstractDestination
RawDestination is a Destination that accepts a sequence output
by a stylesheet or query and returns it directly as an XdmValue, without
constructing an XML tree, and without serialization. It corresponds to the serialization
option build-tree="no"helper| Constructor and Description |
|---|
RawDestination() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the destination, allowing resources to be released.
|
Receiver |
getReceiver(PipelineConfiguration pipe,
SerializationProperties params)
Return a Receiver.
|
XdmValue |
getXdmValue()
Return the result sequence, after it has been constructed.
|
closeAndNotify, getDestinationBaseURI, onClose, setDestinationBaseURIpublic Receiver getReceiver(PipelineConfiguration pipe, SerializationProperties params)
pipe - 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.params - public void close()
throws SaxonApiException
SaxonApiException - if any failure occurspublic XdmValue getXdmValue()
This method should not be called until the destination has been closed.
java.lang.IllegalStateException - if called during the execution of the process that
is writing the tree.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.