net.sf.saxon.event
Class Sender

java.lang.Object
  |
  +--net.sf.saxon.event.Sender

public class Sender
extends java.lang.Object

Sender is a helper class that sends events to a Receiver from any kind of Source object


Constructor Summary
Sender(Configuration config)
           
 
Method Summary
 void send(javax.xml.transform.Source source, Receiver receiver)
          Send the contents of a Source to a Receiver.
 void send(javax.xml.transform.Source source, Receiver receiver, boolean isFinal)
          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
 

Constructor Detail

Sender

public Sender(Configuration config)
Method Detail

send

public void send(javax.xml.transform.Source source,
                 Receiver receiver)
          throws XPathException
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
XPathException

send

public void send(javax.xml.transform.Source source,
                 Receiver receiver,
                 boolean isFinal)
          throws XPathException
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.
XPathException