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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XMLReaderstatic XMLInputFactoryinitXMLInputFactory(XMLInputFactory xmlInputFactory) Initialize an XMLInputFactory to Jena settings such as protecting against XXE.static DocumentBuilderFactorystatic XMLEventReaderstatic XMLEventReaderstatic XMLStreamReaderstatic 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
-