java.lang.Object
org.apache.jena.util.JenaXMLInput
Create XML input methods.
External DTDs and remote entity processing is disabled to prevent XXE attacks.
XXE Processing Problems
For advice in preventing these attacks, see XML External Entity Prevention Cheat Sheet which has a Java section.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XMLReader
static XMLInputFactory
initXMLInputFactory
(XMLInputFactory xmlInputFactory) Initialize an XMLInputFactory to Jena settings such as protecting against XXE.static DocumentBuilderFactory
static XMLEventReader
static XMLEventReader
static XMLStreamReader
static XMLStreamReader
-
Constructor Details
-
JenaXMLInput
public JenaXMLInput()
-
-
Method Details
-
createXMLReader
-
initXMLInputFactory
Initialize an XMLInputFactory to Jena settings such as protecting against XXE. Return the XMLInputFactory. -
newXMLStreamReader
- Throws:
XMLStreamException
-
newXMLStreamReader
- Throws:
XMLStreamException
-
newXMLEventReader
- Throws:
XMLStreamException
-
newXMLEventReader
- Throws:
XMLStreamException
-
newDocumentBuilderFactory
public static DocumentBuilderFactory newDocumentBuilderFactory() throws ParserConfigurationException- Throws:
ParserConfigurationException
-