|
|||||||
| 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
| Constructor Summary | |
|---|---|
DOMSender()
|
|
| Method Summary | |
|---|---|
int |
getColumnNumber()
|
int |
getLineNumber()
|
int |
getLineNumber(int locationId)
Get the line number within the document or module containing a particular location |
String |
getPublicId()
|
String |
getSystemId()
|
String |
getSystemId(int locationId)
Get the URI of the document or module containing a particular location |
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(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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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(Node start)
public void setSystemId(String systemId)
public void send()
throws XPathException
XPathException - On any error in the documentpublic int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface Locatorpublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface Locatorpublic String getPublicId()
getPublicId in interface SourceLocatorgetPublicId in interface Locatorpublic String getSystemId()
getSystemId in interface SourceLocatorgetSystemId in interface Locatorpublic String getSystemId(int locationId)
LocationProvider
getSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
public int getLineNumber(int locationId)
LocationProvider
getLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||