com.icl.saxon
Class ParserManager

java.lang.Object
  |
  +--com.icl.saxon.ParserManager

public class ParserManager
extends java.lang.Object

ParserManager is used internally by SAXON to discover the preferred parser and instantiate it.

ParserManager reads the file ParserManager.properties to determine which SAX parser and DOM implementation to use. You can edit this configuration file to establish your preferred parser.


Constructor Summary
ParserManager()
           
 
Method Summary
static org.xml.sax.XMLReader defaultParser()
          Return the default parser (AElfred)
static org.xml.sax.XMLReader makeParser()
          Instantiate a SAX parser.
static org.xml.sax.XMLReader makeParser(java.lang.String className)
          Create a new SAX XMLReader object using the class name provided.
The named class must exist and must implement the org.xml.sax.XMLReader or Parser interface.
This method returns an instance of the parser named.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserManager

public ParserManager()
Method Detail

makeParser

public static org.xml.sax.XMLReader makeParser()
                                        throws org.xml.sax.SAXException
Instantiate a SAX parser. The parser chosen is determined by reading the properties file ParserManager.properties.
Returns:
a XMLReader, or null if no parser can be located

defaultParser

public static org.xml.sax.XMLReader defaultParser()
Return the default parser (AElfred)

makeParser

public static org.xml.sax.XMLReader makeParser(java.lang.String className)
                                        throws org.xml.sax.SAXException
Create a new SAX XMLReader object using the class name provided.
The named class must exist and must implement the org.xml.sax.XMLReader or Parser interface.
This method returns an instance of the parser named.
Parameters:
className - A string containing the name of the SAX parser class, for example "com.microstar.sax.LarkDriver"
Returns:
an instance of the Parser class named, or null if it is not loadable or is not a Parser.