Package net.sf.saxon.event
Class DocumentSender
java.lang.Object
net.sf.saxon.event.DocumentSender
- All Implemented Interfaces:
SourceLocator
,LocationProvider
,SaxonLocator
,Locator
Sends an entire document to a Receiver.
- Author:
- Ruud Diterwich, integrated by Michael Kay
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentSender
(NodeInfo top) Create a DocumentSender, which takes an input document tree and generates a stream of events for a Receiver -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getLineNumber
(int locationId) Get the line number within the document or module containing a particular locationgetSystemId
(int locationId) Get the URI of the document or module containing a particular locationvoid
Send the entire document to the receiver
-
Constructor Details
-
DocumentSender
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
-
-
Method Details
-
send
Send the entire document to the receiver- Throws:
XPathException
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceLocator
- Specified by:
getColumnNumber
in interfaceSourceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceLocator
- Specified by:
getLineNumber
in interfaceSourceLocator
-
getPublicId
- Specified by:
getPublicId
in interfaceLocator
- Specified by:
getPublicId
in interfaceSourceLocator
-
getSystemId
- Specified by:
getSystemId
in interfaceLocator
- Specified by:
getSystemId
in interfaceSourceLocator
-
getSystemId
Description copied from interface:LocationProvider
Get the URI of the document or module containing a particular location- Specified by:
getSystemId
in interfaceLocationProvider
- Parameters:
locationId
- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the URI of the document or module.
-
getLineNumber
public int getLineNumber(int locationId) Description copied from interface:LocationProvider
Get the line number within the document or module containing a particular location- Specified by:
getLineNumber
in interfaceLocationProvider
- Parameters:
locationId
- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the line number within the document or module.
-