javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, org.xml.sax.Locatorpublic class DocumentSender extends java.lang.Object implements SaxonLocator
| Constructor | 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 | Description |
|---|---|---|
int |
getColumnNumber() |
|
int |
getColumnNumber(long locationId) |
Get the column number within the document or module containing a particular location
|
int |
getLineNumber() |
|
int |
getLineNumber(long locationId) |
Get the line number within the document or module containing a particular location
|
java.lang.String |
getPublicId() |
|
java.lang.String |
getSystemId() |
|
java.lang.String |
getSystemId(long 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 org.xml.sax.LocatorgetColumnNumber in interface javax.xml.transform.SourceLocatorpublic int getLineNumber()
getLineNumber in interface org.xml.sax.LocatorgetLineNumber in interface javax.xml.transform.SourceLocatorpublic java.lang.String getPublicId()
getPublicId in interface org.xml.sax.LocatorgetPublicId in interface javax.xml.transform.SourceLocatorpublic java.lang.String getSystemId()
getSystemId in interface org.xml.sax.LocatorgetSystemId in interface javax.xml.transform.SourceLocatorpublic java.lang.String getSystemId(long locationId)
LocationProvidergetSystemId in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public int getLineNumber(long locationId)
LocationProvidergetLineNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)public int getColumnNumber(long locationId)
LocationProvidergetColumnNumber in interface LocationProviderlocationId - identifier of the location in question (as passed down the Receiver pipeline)