net.sf.saxon.dom

Class DOMSender

public class DOMSender extends Object implements SaxonLocator

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 Noderoot
protected StringsystemId
Method Summary
intgetColumnNumber()
intgetLineNumber()
intgetLineNumber(int locationId)
StringgetPublicId()
StringgetSystemId()
StringgetSystemId(int locationId)
voidsend()
Walk a document (traversing the nodes depth first)
voidsetPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration
voidsetReceiver(Receiver receiver)
Set the receiver.
voidsetStartNode(Node start)
Set the DOM Document that will be walked
voidsetSystemId(String systemId)
Set the systemId of the source document (which will also be used for the destination)

Field Detail

root

protected Node root

systemId

protected String systemId

Method Detail

getColumnNumber

public int getColumnNumber()

getLineNumber

public int getLineNumber()

getLineNumber

public int getLineNumber(int locationId)

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

getSystemId

public String getSystemId(int locationId)

send

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

Throws: net.sf.saxon.trans.XPathException On any error in the document

setPipelineConfiguration

public void setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration

setReceiver

public void setReceiver(Receiver receiver)
Set the receiver.

Parameters: receiver The object to receive content events.

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)