Package net.sf.saxon.event
Class EventSource
java.lang.Object
net.sf.saxon.event.EventSource
- All Implemented Interfaces:
Source
,ActiveSource
An implementation of the JAXP Source class that supplies a document in the form of a stream
of push events sent to a Receiver
- Since:
- 9.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
deliver
(Receiver out, ParseOptions options) Supply events to a Receiver.Get the system identifier that was set with setSystemId.void
setSystemId
(String systemId) Set the system identifier for this Source.
-
Constructor Details
-
EventSource
public EventSource()
-
-
Method Details
-
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.
-
deliver
Supply events to a Receiver.- Specified by:
deliver
in interfaceActiveSource
- Parameters:
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 input- Throws:
XPathException
- if any error occurs
-