public abstract class EventSource extends java.lang.Object implements ActiveSource
Constructor and Description |
---|
EventSource() |
Modifier and Type | Method and Description |
---|---|
abstract void |
deliver(Receiver out,
ParseOptions options)
Supply events to a Receiver.
|
java.lang.String |
getSystemId()
Get the system identifier that was set with setSystemId.
|
void |
setSystemId(java.lang.String systemId)
Set the system identifier for this Source.
|
public void setSystemId(java.lang.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 javax.xml.transform.Source
systemId
- The system identifier as a URL string.public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
public abstract void deliver(Receiver out, ParseOptions options) throws XPathException
deliver
in interface ActiveSource
out
- the Receiver to which events will be sent. It is the caller's responsibility
to initialize the receiver with a PipelineConfiguration, and to call the open() and close()
methods on the receiver before and after calling this send() method.options
- options for parsing XML inputXPathException
- if any error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.