org.apache.tools.ant.util
public class JAXPUtils extends Object
This class will create only a single factory instance.
Since: Ant 1.5
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 Parser | getParser()
Returns a newly created SAX 1 Parser, using the default parser
factory.
|
static 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 XMLReader | getXMLReader()
Returns a newly created SAX 2 XMLReader, using the default parser
factory.
|
static SAXParserFactory | newParserFactory()
Returns a new parser factory instance.
|
Returns: a DocumentBuilder.
Throws: BuildException on error.
Since: Ant 1.6
Returns: a SAX 2 XMLReader.
Throws: BuildException on error.
Since: Ant 1.6
See Also: JAXPUtils
Returns: a SAXParserFactory to use which supports manufacture of namespace aware parsers.
Throws: BuildException on error.
Since: Ant 1.6
Returns: a SAX 1 Parser.
Throws: BuildException on error.
Since: Ant 1.5
See Also: JAXPUtils
Returns: a SAXParserFactory to use.
Throws: BuildException on error.
Since: Ant 1.5
Parameters: file the file to create the system id from.
Returns: the systemid corresponding to the given file.
Since: Ant 1.5.2
Returns: a SAX 2 XMLReader.
Throws: BuildException on error.
Since: Ant 1.5
See Also: JAXPUtils
Returns: the parser factory.
Throws: BuildException on error.
Since: Ant 1.5