|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.xml.JAXPUtils
public class JAXPUtils
Collection of helper methods that retrieve a ParserFactory or Parsers and Readers.
This class will create only a single factory instance.
Based on the original by Stefan Bodewig.
Constructor Summary | |
---|---|
JAXPUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXPUtils()
Method Detail |
---|
public static SAXParserFactory getParserFactory() throws ArooaException
ArooaException
public static SAXParserFactory getNSParserFactory() throws ArooaException
ArooaException
public static SAXParserFactory newParserFactory() throws ArooaException
ArooaException
public static XMLReader getXMLReader() throws ArooaException
getParserFactory()
ArooaException
public static XMLReader getNamespaceXMLReader() throws ArooaException
getParserFactory()
ArooaException
public static DocumentBuilder getDocumentBuilder() throws ArooaException
ArooaException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |