Package net.sf.saxon.event
Class Transmitter
java.lang.Object
net.sf.saxon.event.Transmitter
- All Implemented Interfaces:
Source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the system identifier that was set with setSystemId.void
setSystemId
(String systemId) Set the system identifier for this Source.abstract void
Send events to a supplied Receiver
-
Constructor Details
-
Transmitter
public Transmitter()
-
-
Method Details
-
transmit
Send events to a supplied Receiver- Parameters:
receiver
- the Receiver to which events should be sent.The pipelineConfiguration property of this Receiver is guaranteed to be initialized, providing access to objects such as the Saxon Configuration and NamePool.
The implementation of this class does not necessarily need to construct Receiver events directly. It can do so, for example, via the
StreamWriterToReceiver
class, which translatesXMLStreamWriter
events to Receiver events, or via theReceivingContentHandler
class, which translates SAXContentHandler
events to Receiver events.- Throws:
XPathException
- if any failure occurs
-
setSystemId
Set the system identifier for this Source.The system identifier is optional if the source does not get its data from a URL, but it may still be useful to provide one. The application can use a system identifier, for example, to resolve relative URIs and to include in error messages and warnings.
- Specified by:
setSystemId
in interfaceSource
- Parameters:
systemId
- The system identifier as a URL string.
-
getSystemId
Get the system identifier that was set with setSystemId.- Specified by:
getSystemId
in interfaceSource
- Returns:
- The system identifier that was set with setSystemId, or null if setSystemId was not called.
-