| java.lang.Object net.sf.saxon.query.QueryResult
QueryResult | public class QueryResult (Code) | | This utility class takes the result sequence produced by a query, and wraps it as
an XML document. The class is never instantiated.
|
Method Summary | |
public static void | sendWrappedSequence(SequenceIterator iterator, Receiver destination) Take a sequence supplied in the form of an iterator and generate a wrapped represention of the
items in the sequence, the wrapped representation being a sequence of events sent to a supplied
Receiver. | public static void | serialize(NodeInfo node, Result destination, Properties outputProperties, Configuration config) Serialize a document containing wrapped query results (or any other document, in fact)
as XML. | public static void | serializeSequence(SequenceIterator results, Configuration config, OutputStream destination, Properties outputProps) Serialize an arbitrary sequence, without any special wrapping. | public static DocumentInfo | wrap(SequenceIterator iterator, Configuration config) |
sendWrappedSequence | public static void sendWrappedSequence(SequenceIterator iterator, Receiver destination) throws XPathException(Code) | | Take a sequence supplied in the form of an iterator and generate a wrapped represention of the
items in the sequence, the wrapped representation being a sequence of events sent to a supplied
Receiver.
Parameters: iterator - the input sequence Parameters: destination - the Receiver to accept the wrapped output |
serialize | public static void serialize(NodeInfo node, Result destination, Properties outputProperties, Configuration config) throws XPathException(Code) | | Serialize a document containing wrapped query results (or any other document, in fact)
as XML.
Parameters: node - The document or element to be serialized Parameters: destination - The Result object to contain the serialized form Parameters: outputProperties - Serialization options Parameters: config - The Configuration throws: XPathException - If serialization fails |
serializeSequence | public static void serializeSequence(SequenceIterator results, Configuration config, OutputStream destination, Properties outputProps) throws XPathException(Code) | | Serialize an arbitrary sequence, without any special wrapping.
Parameters: results - the sequence to be serialized Parameters: config - the configuration (gives access to information such as the NamePool) Parameters: destination - the output stream to which the output is to be written Parameters: outputProps - a set of serialization properties as defined in JAXP throws: XPathException - if any failure occurs |
wrap | public static DocumentInfo wrap(SequenceIterator iterator, Configuration config) throws XPathException(Code) | | Take the results of a query (or any other SequenceIterator) and create
an XML document containing copies of all items in the sequence, suitably wrapped
Parameters: iterator - The values to be wrapped Parameters: config - The Saxon configuration used to evaluate the query the document containing the wrapped results throws: XPathException - |
|
|