Package org.apache.poi.util
Class XMLHelper
java.lang.Object
org.apache.poi.util.XMLHelper
Helper methods for working with javax.xml classes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderFactory
Creates a new DocumentBuilderFactory, with sensible defaultsstatic SAXParserFactory
static SchemaFactory
static TransformerFactory
static DocumentBuilder
Creates a new document builder, with sensible defaultsstatic Transformer
static XMLEventFactory
Creates a new StAX XMLEventFactory, with sensible defaultsstatic XMLInputFactory
Creates a new StAX XMLInputFactory, with sensible defaultsstatic XMLOutputFactory
Creates a new StAX XMLOutputFactory, with sensible defaultsstatic XMLReader
Creates a new SAX XMLReader, with sensible defaults
-
Method Details
-
getDocumentBuilderFactory
Creates a new DocumentBuilderFactory, with sensible defaults -
newDocumentBuilder
Creates a new document builder, with sensible defaults- Throws:
IllegalStateException
- If creating the DocumentBuilder fails, e.g. due toParserConfigurationException
.
-
getSaxParserFactory
-
newXMLReader
Creates a new SAX XMLReader, with sensible defaults -
newXMLInputFactory
Creates a new StAX XMLInputFactory, with sensible defaults -
newXMLOutputFactory
Creates a new StAX XMLOutputFactory, with sensible defaults -
newXMLEventFactory
Creates a new StAX XMLEventFactory, with sensible defaults -
getTransformerFactory
-
newTransformer
-
getSchemaFactory
-