public class JAXPUtils extends Object
This class will create only a single factory instance.
| Constructor and Description | 
|---|
| JAXPUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static javax.xml.parsers.DocumentBuilder | getDocumentBuilder()Returns a newly created DocumentBuilder. | 
| static org.xml.sax.XMLReader | getNamespaceXMLReader()Returns a newly created SAX 2 XMLReader, which is namespace aware | 
| static javax.xml.parsers.SAXParserFactory | getNSParserFactory()Returns the parser factory to use to create namespace aware parsers. | 
| static org.xml.sax.Parser | getParser()Returns a newly created SAX 1 Parser, using the default parser
 factory. | 
| static javax.xml.parsers.SAXParserFactory | getParserFactory()Returns the parser factory to use. | 
| static String | getSystemId(File file)This is a best attempt to provide a URL.toExternalForm() from
 a file URL. | 
| static org.xml.sax.XMLReader | getXMLReader()Returns a newly created SAX 2 XMLReader, using the default parser
 factory. | 
| static javax.xml.parsers.SAXParserFactory | newParserFactory()Returns a new  parser factory instance. | 
public static javax.xml.parsers.DocumentBuilder getDocumentBuilder()
                                                            throws BuildException
BuildException - on error.public static org.xml.sax.XMLReader getNamespaceXMLReader()
                                                   throws BuildException
BuildException - on error.getParserFactory()public static javax.xml.parsers.SAXParserFactory getNSParserFactory()
                                                             throws BuildException
BuildException - on error.public static org.xml.sax.Parser getParser()
                                    throws BuildException
BuildException - on error.getParserFactory()public static javax.xml.parsers.SAXParserFactory getParserFactory()
                                                           throws BuildException
BuildException - on error.public static String getSystemId(File file)
file - the file to create the system id from.public static org.xml.sax.XMLReader getXMLReader()
                                          throws BuildException
BuildException - on error.getParserFactory()public static javax.xml.parsers.SAXParserFactory newParserFactory()
                                                           throws BuildException
BuildException - on error.