@Beta public final class UntrustedXML extends Object
| Constructor and Description |
|---|
UntrustedXML() |
| Modifier and Type | Method and Description |
|---|---|
static XMLStreamReader |
createXMLStreamReader(InputStream stream)
Create a new
XMLStreamReader for dealing with untrusted XML data. |
static XMLStreamReader |
createXMLStreamReader(InputStream stream,
Charset charset)
Create a new
XMLStreamReader for dealing with untrusted XML data. |
static XMLStreamReader |
createXMLStreamReader(Reader reader)
Create a new
XMLStreamReader for dealing with untrusted XML data. |
static DocumentBuilder |
newDocumentBuilder()
Create a new
DocumentBuilder for dealing with untrusted XML data. |
static SAXParser |
newSAXParser()
Create a new
SAXParser for dealing with untrusted XML data. |
@Nonnull public static DocumentBuilder newDocumentBuilder()
DocumentBuilder for dealing with untrusted XML data. This method is equivalent to
DocumentBuilderFactory.newDocumentBuilder(), except it does not throw a checked exception.UnsupportedOperationException - if the runtime fails to instantiate a good enough builder@Nonnull public static SAXParser newSAXParser()
SAXParser for dealing with untrusted XML data. This method is equivalent to
SAXParserFactory.newSAXParser(), except it does not throw a checked exception.UnsupportedOperationException - if the runtime fails to instantiate a good enough builder@Nonnull public static XMLStreamReader createXMLStreamReader(InputStream stream) throws XMLStreamException
XMLStreamReader for dealing with untrusted XML data. This method is equivalent to
XMLInputFactory.createXMLStreamReader(InputStream).XMLStreamException - when the underlying factory throws it@Nonnull public static XMLStreamReader createXMLStreamReader(InputStream stream, Charset charset) throws XMLStreamException
XMLStreamReader for dealing with untrusted XML data. This method is equivalent to
XMLInputFactory.createXMLStreamReader(InputStream, String), except it takes an explict charset argument.XMLStreamException - when the underlying factory throws it@Nonnull public static XMLStreamReader createXMLStreamReader(Reader reader) throws XMLStreamException
XMLStreamReader for dealing with untrusted XML data. This method is equivalent to
XMLInputFactory.createXMLStreamReader(Reader).XMLStreamException - when the underlying factory throws itCopyright © 2018 OpenDaylight. All rights reserved.