net.sf.saxon.event
Class DocumentSender
java.lang.Object
net.sf.saxon.event.DocumentSender
- All Implemented Interfaces:
- SourceLocator, LocationProvider, SaxonLocator, Locator
public class DocumentSender
- extends Object
- implements SaxonLocator
Sends an entire document to a Receiver.
- Author:
- Ruud Diterwich, integrated by Michael Kay
Constructor Summary |
DocumentSender(NodeInfo top)
Create a DocumentSender, which takes an input document tree and generates
a stream of events for a Receiver |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentSender
public DocumentSender(NodeInfo top)
- Create a DocumentSender, which takes an input document tree and generates
a stream of events for a Receiver
- Parameters:
top
- the document or element node to be turned into a stream of events
send
public void send(Receiver receiver)
throws XPathException
- Send the entire document to the receiver
- Throws:
XPathException
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interface SourceLocator
- Specified by:
getColumnNumber
in interface Locator
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface SourceLocator
- Specified by:
getLineNumber
in interface Locator
getPublicId
public String getPublicId()
- Specified by:
getPublicId
in interface SourceLocator
- Specified by:
getPublicId
in interface Locator
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interface SourceLocator
- Specified by:
getSystemId
in interface Locator
getSystemId
public String getSystemId(int locationId)
- Specified by:
getSystemId
in interface LocationProvider
getLineNumber
public int getLineNumber(int locationId)
- Specified by:
getLineNumber
in interface LocationProvider