Modifier and Type | Method and Description |
---|---|
static javax.xml.parsers.DocumentBuilderFactory |
getDocumentBuilderFactory()
Creates a new DocumentBuilderFactory, with sensible defaults
|
static javax.xml.parsers.SAXParserFactory |
getSaxParserFactory() |
static javax.xml.validation.SchemaFactory |
getSchemaFactory() |
static javax.xml.transform.TransformerFactory |
getTransformerFactory() |
static javax.xml.parsers.DocumentBuilder |
newDocumentBuilder()
Creates a new document builder, with sensible defaults
|
static javax.xml.transform.Transformer |
newTransformer() |
static javax.xml.stream.XMLEventFactory |
newXMLEventFactory()
Creates a new StAX XMLEventFactory, with sensible defaults
|
static javax.xml.stream.XMLInputFactory |
newXMLInputFactory()
Creates a new StAX XMLInputFactory, with sensible defaults
|
static javax.xml.stream.XMLOutputFactory |
newXMLOutputFactory()
Creates a new StAX XMLOutputFactory, with sensible defaults
|
static org.xml.sax.XMLReader |
newXMLReader()
Creates a new SAX XMLReader, with sensible defaults
|
public static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
public static javax.xml.parsers.DocumentBuilder newDocumentBuilder()
java.lang.IllegalStateException
- If creating the DocumentBuilder fails, e.g.
due to ParserConfigurationException
.public static javax.xml.parsers.SAXParserFactory getSaxParserFactory()
public static org.xml.sax.XMLReader newXMLReader() throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public static javax.xml.stream.XMLInputFactory newXMLInputFactory()
public static javax.xml.stream.XMLOutputFactory newXMLOutputFactory()
public static javax.xml.stream.XMLEventFactory newXMLEventFactory()
public static javax.xml.transform.TransformerFactory getTransformerFactory()
public static javax.xml.transform.Transformer newTransformer() throws javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerConfigurationException
public static javax.xml.validation.SchemaFactory getSchemaFactory()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.