public class JAXPUtils extends Object
This class will create only a single factory instance.
Based on the original by Stefan Bodewig.
| Constructor and Description |
|---|
JAXPUtils() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentBuilder |
getDocumentBuilder()
Returns a newly created DocumentBuilder.
|
static XMLReader |
getNamespaceXMLReader()
Returns a newly created SAX 2 XMLReader, which is namespace aware
|
static SAXParserFactory |
getNSParserFactory()
Returns the parser factory to use to create namespace aware parsers.
|
static SAXParserFactory |
getParserFactory()
Returns the parser factory to use.
|
static XMLReader |
getXMLReader()
Returns a newly created SAX 2 XMLReader, using the default parser
factory.
|
static SAXParserFactory |
newParserFactory()
Returns a new parser factory instance.
|
public static SAXParserFactory getParserFactory() throws ArooaException
ArooaExceptionpublic static SAXParserFactory getNSParserFactory() throws ArooaException
ArooaExceptionpublic static SAXParserFactory newParserFactory() throws ArooaException
ArooaExceptionpublic static XMLReader getXMLReader() throws ArooaException
ArooaExceptiongetParserFactory()public static XMLReader getNamespaceXMLReader() throws ArooaException
ArooaExceptiongetParserFactory()public static DocumentBuilder getDocumentBuilder() throws ArooaException
ArooaExceptionCopyright © 2023. All rights reserved.