public class XmlUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
ALLOW_EXTERNAL_DTD |
private static String |
ALLOW_EXTERNAL_GENERAL_ENTITIES |
private static String |
ALLOW_EXTERNAL_PARAM_ENTITIES |
private static String |
DISALLOW_DOCTYPES |
Constructor and Description |
---|
XmlUtils() |
Modifier and Type | Method and Description |
---|---|
static DocumentBuilder |
createSafeDocumentBuilder(boolean isNamespaceAware) |
static DocumentBuilder |
createSafeDocumentBuilder(Schema schema) |
static DocumentBuilder |
createSafeDocumentBuilder(Schema schema,
boolean isNamespaceAware) |
static XMLStreamReader |
createSafeReader(InputStream inputStream) |
static XMLStreamReader |
createSafeReader(StreamSource source) |
static XMLReader |
createSafeSaxReader(SAXParserFactory saxParserFactory,
ContentHandler contentHandler) |
private static final String DISALLOW_DOCTYPES
private static final String ALLOW_EXTERNAL_GENERAL_ENTITIES
private static final String ALLOW_EXTERNAL_PARAM_ENTITIES
private static final String ALLOW_EXTERNAL_DTD
public static XMLStreamReader createSafeReader(InputStream inputStream) throws XMLStreamException
XMLStreamException
public static XMLStreamReader createSafeReader(StreamSource source) throws XMLStreamException
XMLStreamException
public static XMLReader createSafeSaxReader(SAXParserFactory saxParserFactory, ContentHandler contentHandler) throws SAXException, ParserConfigurationException
public static DocumentBuilder createSafeDocumentBuilder(Schema schema, boolean isNamespaceAware) throws ParserConfigurationException
ParserConfigurationException
public static DocumentBuilder createSafeDocumentBuilder(Schema schema) throws ParserConfigurationException
ParserConfigurationException
public static DocumentBuilder createSafeDocumentBuilder(boolean isNamespaceAware) throws ParserConfigurationException
ParserConfigurationException
Copyright © 2021 Apache NiFi Project. All rights reserved.