public class SaajXmlReader extends AbstractXmlReader
XMLReader
that reads from a SAAJ Node
. Consumes XMLEvents
from an
XMLEventReader
, and calls the corresponding methods on the SAX callback interfaces.Node
,
SOAPElement
Constructor and Description |
---|
SaajXmlReader(Node startNode)
Constructs a new instance of the
SaajXmlReader that reads from the given Node . |
Modifier and Type | Method and Description |
---|---|
boolean |
getFeature(String name)
Throws a
SAXNotRecognizedException exception. |
void |
parse(InputSource ignored)
Parses the StAX XML reader passed at construction-time.
|
void |
parse(String ignored)
Parses the StAX XML reader passed at construction-time.
|
void |
setFeature(String name,
boolean value)
Throws a
SAXNotRecognizedException exception. |
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, getProperty, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty
public SaajXmlReader(Node startNode)
SaajXmlReader
that reads from the given Node
.startNode
- the SAAJ Node
to read frompublic boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
AbstractXmlReader
SAXNotRecognizedException
exception.getFeature
in interface XMLReader
getFeature
in class AbstractXmlReader
SAXNotRecognizedException
- alwaysSAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
AbstractXmlReader
SAXNotRecognizedException
exception.setFeature
in interface XMLReader
setFeature
in class AbstractXmlReader
SAXNotRecognizedException
- alwaysSAXNotSupportedException
public final void parse(InputSource ignored) throws SAXException
Note that the given InputSource
is not read, but ignored.
ignored
- is ignoredSAXException
- A SAX exception, possibly wrapping a XMLStreamException
public final void parse(String ignored) throws SAXException
Note that the given system identifier is not read, but ignored.
ignored
- is ignoredSAXException
- A SAX exception, possibly wrapping a XMLStreamException
Copyright © 2020 Pivotal Software. All rights reserved.