net.sf.saxon.event

Class Sender

public class Sender extends Object

Sender is a helper class that sends events to a Receiver from any kind of Source object
Field Summary
PipelineConfigurationpipe
Constructor Summary
Sender(PipelineConfiguration pipe)
Method Summary
static voidconfigureParser(XMLReader parser)
Configure a SAX parser to ensure it has the correct namesapce properties set
voidsend(Source source, Receiver receiver)
Send the contents of a Source to a Receiver.
voidsend(Source source, Receiver receiver, boolean isFinal)
Send the contents of a Source to a Receiver.

Field Detail

pipe

PipelineConfiguration pipe

Constructor Detail

Sender

public Sender(PipelineConfiguration pipe)

Method Detail

configureParser

public static void configureParser(XMLReader parser)
Configure a SAX parser to ensure it has the correct namesapce properties set

send

public void send(Source source, Receiver receiver)
Send the contents of a Source to a Receiver. Note that if the Source identifies an element node rather than a document node, only the subtree rooted at that element will be copied.

Parameters: source the document or element to be copied receiver the destination to which it is to be copied

send

public void send(Source source, Receiver receiver, boolean isFinal)
Send the contents of a Source to a Receiver. Note that if the Source identifies an element node rather than a document node, only the subtree rooted at that element will be copied.

Parameters: source the document or element to be copied receiver the destination to which it is to be copied isFinal set to true when the document is being processed purely for the sake of validation, in which case multiple validation errors in the source can be reported.