Package org.apache.poi.util
Class XMLHelper
- java.lang.Object
-
- org.apache.poi.util.XMLHelper
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentBuilderFactorygetDocumentBuilderFactory()Creates a new DocumentBuilderFactory, with sensible defaultsstatic SAXParserFactorygetSaxParserFactory()static SchemaFactorygetSchemaFactory()static TransformerFactorygetTransformerFactory()static DocumentBuildernewDocumentBuilder()Creates a new document builder, with sensible defaultsstatic TransformernewTransformer()static XMLEventFactorynewXMLEventFactory()Creates a new StAX XMLEventFactory, with sensible defaultsstatic XMLInputFactorynewXMLInputFactory()Creates a new StAX XMLInputFactory, with sensible defaultsstatic XMLOutputFactorynewXMLOutputFactory()Creates a new StAX XMLOutputFactory, with sensible defaultsstatic XMLReadernewXMLReader()Creates a new SAX XMLReader, with sensible defaults
-
-
-
Method Detail
-
getDocumentBuilderFactory
public static DocumentBuilderFactory getDocumentBuilderFactory()
Creates a new DocumentBuilderFactory, with sensible defaults
-
newDocumentBuilder
public static DocumentBuilder newDocumentBuilder()
Creates a new document builder, with sensible defaults- Throws:
IllegalStateException- If creating the DocumentBuilder fails, e.g. due toParserConfigurationException.
-
getSaxParserFactory
public static SAXParserFactory getSaxParserFactory()
-
newXMLReader
public static XMLReader newXMLReader() throws SAXException, ParserConfigurationException
Creates a new SAX XMLReader, with sensible defaults
-
newXMLInputFactory
public static XMLInputFactory newXMLInputFactory()
Creates a new StAX XMLInputFactory, with sensible defaults
-
newXMLOutputFactory
public static XMLOutputFactory newXMLOutputFactory()
Creates a new StAX XMLOutputFactory, with sensible defaults
-
newXMLEventFactory
public static XMLEventFactory newXMLEventFactory()
Creates a new StAX XMLEventFactory, with sensible defaults
-
getTransformerFactory
public static TransformerFactory getTransformerFactory()
-
newTransformer
public static Transformer newTransformer() throws TransformerConfigurationException
-
getSchemaFactory
public static SchemaFactory getSchemaFactory()
-
-