|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.dom.DOMSender
public class DOMSender
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 org.w3c.dom.Node |
root
|
protected java.lang.String |
systemId
|
Constructor Summary | |
---|---|
DOMSender()
|
Method Summary | |
---|---|
int |
getColumnNumber()
|
int |
getLineNumber()
|
int |
getLineNumber(int locationId)
|
java.lang.String |
getPublicId()
|
java.lang.String |
getSystemId()
|
java.lang.String |
getSystemId(int locationId)
|
void |
send()
Walk a document (traversing the nodes depth first) |
void |
setPipelineConfiguration(PipelineConfiguration pipe)
Set the pipeline configuration |
void |
setReceiver(Receiver receiver)
Set the receiver. |
void |
setStartNode(org.w3c.dom.Node start)
Set the DOM Document that will be walked |
void |
setSystemId(java.lang.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 |
---|
protected org.w3c.dom.Node root
protected java.lang.String systemId
Constructor Detail |
---|
public DOMSender()
Method Detail |
---|
public void setPipelineConfiguration(PipelineConfiguration pipe)
public void setReceiver(Receiver receiver)
receiver
- The object to receive content events.public void setStartNode(org.w3c.dom.Node start)
public void setSystemId(java.lang.String systemId)
public void send() throws XPathException
XPathException
- On any error in the documentpublic int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface org.xml.sax.Locator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface org.xml.sax.Locator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
getPublicId
in interface org.xml.sax.Locator
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface org.xml.sax.Locator
public java.lang.String getSystemId(int locationId)
getSystemId
in interface LocationProvider
public int getLineNumber(int locationId)
getLineNumber
in interface LocationProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |