public class ActiveStAXSource extends java.lang.Object implements ActiveSource
Receiver.
Saxon can only handle a StAXSource that wraps an XMLStreamReader (not an XMLEventReader)
| Constructor and Description |
|---|
ActiveStAXSource(javax.xml.transform.stax.StAXSource source) |
| Modifier and Type | Method and Description |
|---|---|
void |
deliver(Receiver receiver,
ParseOptions options)
Deliver the content of the source to a supplied Receiver.
|
static ActiveStAXSource |
fromStAXSource(javax.xml.transform.stax.StAXSource source) |
java.lang.String |
getSystemId() |
void |
setSystemId(java.lang.String systemId) |
public ActiveStAXSource(javax.xml.transform.stax.StAXSource source)
public static ActiveStAXSource fromStAXSource(javax.xml.transform.stax.StAXSource source) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic void setSystemId(java.lang.String systemId)
setSystemId in interface javax.xml.transform.Sourcepublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.Sourcepublic void deliver(Receiver receiver, ParseOptions options) throws XPathException
ActiveSourceFor many (but not all) implementations of Source, this method consumes
the source and can therefore only be called once.
deliver in interface ActiveSourcereceiver - the receiver to which events representing the parsed XML document will be sentoptions - options for parsing the sourceXPathException - if parsing fails for any reason. The detailed diagnostics will
have been sent to the error reporter.Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.