public class DocumentSender extends Object implements SaxonLocator
| Constructor and Description |
|---|
DocumentSender(NodeInfo top)
Create a DocumentSender, which takes an input document tree and generates
a stream of events for a Receiver
|
| Modifier and Type | Method and Description |
|---|---|
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(Receiver receiver)
Send the entire document to the receiver
|
public DocumentSender(NodeInfo top)
top - the document or element node to be turned into a stream of eventspublic void send(Receiver receiver) throws XPathException
XPathExceptionpublic 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)
LocationProvidergetSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(int locationId)
LocationProvidergetLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)