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 DocumentBuilderFactory
getDocumentBuilderFactory()
Creates a new DocumentBuilderFactory, with sensible defaultsstatic SAXParserFactory
getSaxParserFactory()
static SchemaFactory
getSchemaFactory()
static TransformerFactory
getTransformerFactory()
static DocumentBuilder
newDocumentBuilder()
Creates a new document builder, with sensible defaultsstatic Transformer
newTransformer()
static XMLEventFactory
newXMLEventFactory()
Creates a new StAX XMLEventFactory, with sensible defaultsstatic XMLInputFactory
newXMLInputFactory()
Creates a new StAX XMLInputFactory, with sensible defaultsstatic XMLOutputFactory
newXMLOutputFactory()
Creates a new StAX XMLOutputFactory, with sensible defaultsstatic XMLReader
newXMLReader()
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()
-
-