Constructor and Description |
---|
Transmitter() |
Modifier and Type | Method and Description |
---|---|
String |
getSystemId()
Get the system identifier that was set with setSystemId.
|
void |
setSystemId(String systemId)
Set the system identifier for this Source.
|
abstract void |
transmit(Receiver receiver)
Send events to a supplied Receiver
|
public abstract void transmit(Receiver receiver) throws XPathException
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 translates XMLStreamWriter
events to Receiver events,
or via the ReceivingContentHandler
class, which translates SAX
ContentHandler
events to Receiver events.
XPathException
- if any failure occurspublic void setSystemId(String systemId)
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.
setSystemId
in interface Source
systemId
- The system identifier as a URL string.public String getSystemId()
getSystemId
in interface Source
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.