net.sf.saxon.dom
Class DOMSender

java.lang.Object
  extended by net.sf.saxon.dom.DOMSender
All Implemented Interfaces:
Locator

public class DOMSender
extends Object
implements Locator

DOMSender.java: pseudo-SAX driver for a DOM source document. This class takes an existing DOM Document and walks around it in a depth-first traversal, calling a Receiver to process the nodes as it does so


Field Summary
protected  Node root
           
protected  String systemId
           
 
Constructor Summary
DOMSender()
           
 
Method Summary
 int getColumnNumber()
           
 int getLineNumber()
           
 String getPublicId()
           
 String getSystemId()
           
 void send()
          Walk a document (traversing the nodes depth first)
 void setNamePool(NamePool pool)
          Set the namePool
 void setReceiver(Receiver receiver)
          Set the receiver.
 void setStartNode(Node start)
          Set the DOM Document that will be walked
 void setSystemId(String systemId)
          Set the systemId of the source document (which will also be used for the destination)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

root

protected Node root

systemId

protected String systemId
Constructor Detail

DOMSender

public DOMSender()
Method Detail

setReceiver

public void setReceiver(Receiver receiver)
Set the receiver.

Parameters:
receiver - The object to receive content events.

setNamePool

public void setNamePool(NamePool pool)
Set the namePool


setStartNode

public void setStartNode(Node start)
Set the DOM Document that will be walked


setSystemId

public void setSystemId(String systemId)
Set the systemId of the source document (which will also be used for the destination)


send

public void send()
          throws TransformerException
Walk a document (traversing the nodes depth first)

Throws:
TransformerException - On any error in the document

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface Locator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface Locator

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface Locator

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Locator