@Beta public final class UntrustedXML extends Object
Constructor and Description |
---|
UntrustedXML() |
Modifier and Type | Method and Description |
---|---|
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 builderCopyright © 2018 OpenDaylight. All rights reserved.