|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.saxon.query.QueryResult
This class takes the result sequence produced by a query, and wraps it as an XML document
| Constructor Summary | |
QueryResult()
|
|
| Method Summary | |
static void |
serialize(NodeInfo node,
javax.xml.transform.Result destination,
java.util.Properties outputProperties,
Configuration config)
Serialize a document containing wrapped query results (or any other document, in fact) as XML. |
static void |
serializeSequence(SequenceIterator results,
Configuration config,
java.io.OutputStream destination,
java.util.Properties outputProps)
Serialize an arbitrary sequence, without any special wrapping. |
static DocumentInfo |
wrap(SequenceIterator iterator,
Configuration config)
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryResult()
| Method Detail |
public static DocumentInfo wrap(SequenceIterator iterator,
Configuration config)
throws javax.xml.transform.TransformerException
iterator - The values to be wrappedconfig - The Saxon configuration used to evaluate the query
javax.xml.transform.TransformerException
public static void serialize(NodeInfo node,
javax.xml.transform.Result destination,
java.util.Properties outputProperties,
Configuration config)
throws javax.xml.transform.TransformerException
node - The document or element to be serializeddestination - The Result object to contain the serialized formoutputProperties - Serialization optionsconfig - The Configuration
javax.xml.transform.TransformerException - If serialization fails
public static void serializeSequence(SequenceIterator results,
Configuration config,
java.io.OutputStream destination,
java.util.Properties outputProps)
throws javax.xml.transform.TransformerException
results - the sequence to be serializedconfig - the configuration (gives access to information such as the NamePool)destination - the output stream to which the output is to be writtenoutputProps - a set of serialization properties as defined in JAXP
javax.xml.transform.TransformerException - if any failure occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||