net.sf.saxon.event

Class SerializerFactory

public class SerializerFactory extends 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 ReceivergetReceiver(Result result, PipelineConfiguration pipe, Properties props)
Get a Receiver that wraps a given Result object

Method Detail

getReceiver

public static Receiver getReceiver(Result result, PipelineConfiguration pipe, Properties props)
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