net.sf.saxon.event
Class SerializerFactory

java.lang.Object
  extended bynet.sf.saxon.event.SerializerFactory

public class SerializerFactory
extends java.lang.Object

Helper class to construct a serialization pipeline for a given result destination and a given set of output properties. The pipeline is represented by a Receiver object to which result tree events are sent


Method Summary
static Receiver getReceiver(javax.xml.transform.Result result, PipelineConfiguration pipe, java.util.Properties props)
          Get a Receiver that wraps a given Result object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReceiver

public static Receiver getReceiver(javax.xml.transform.Result result,
                                   PipelineConfiguration pipe,
                                   java.util.Properties props)
                            throws XPathException
Get a Receiver that wraps a given Result object

Parameters:
result - The final destination of the serialized output. Usually a StreamResult, but other kinds of Result are possible.
pipe - The PipelineConfiguration.
props - The serialization properties
Throws:
XPathException