net.sf.saxon.dom

Class DOMSender

public class DOMSender extends Object implements SaxonLocator, SourceLocationProvider

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()
intgetColumnNumber(long locationId)
intgetLineNumber()
intgetLineNumber(long locationId)
StringgetPublicId()
StringgetSystemId()
StringgetSystemId(long 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()

getColumnNumber

public int getColumnNumber(long locationId)

getLineNumber

public int getLineNumber()

getLineNumber

public int getLineNumber(long locationId)

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

getSystemId

public String getSystemId(long 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

Parameters: pipe 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

Parameters: start the root node from which the tree walk will start

setSystemId

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

Parameters: systemId the systemId of the source document