|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.util.JAXPUtils
Collection of helper methods that retrieve a ParserFactory or Parsers and Readers.
This class will create only a single factory instance.
Constructor Summary | |
JAXPUtils()
|
Method Summary | |
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 java.lang.String |
getSystemId(java.io.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. |
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 javax.xml.parsers.SAXParserFactory getParserFactory() throws BuildException
BuildException
public static javax.xml.parsers.SAXParserFactory newParserFactory() throws BuildException
BuildException
public static org.xml.sax.Parser getParser() throws BuildException
BuildException
getParserFactory()
public static org.xml.sax.XMLReader getXMLReader() throws BuildException
BuildException
getParserFactory()
public static java.lang.String getSystemId(java.io.File file)
file
- the file to create the system id from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |