net.sf.saxon.event
Class Sender

java.lang.Object
  extended by net.sf.saxon.event.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
(package private)  Configuration config
           
 
Constructor Summary
Sender(Configuration config)
           
 
Method Summary
 void send(Source source, Receiver receiver, NamePool namePool, boolean isStyleSheet)
          Send the contents of a Source to a Receiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

Configuration config
Constructor Detail

Sender

public Sender(Configuration config)
Method Detail

send

public void send(Source source,
                 Receiver receiver,
                 NamePool namePool,
                 boolean isStyleSheet)
          throws TransformerException
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
namePool - the namePool used for the destination
isStyleSheet - true if the destination is a stylesheet document
Throws:
TransformerException