org.apache.crimson.jaxp
Class SAXParserFactoryImpl

java.lang.Object
  extended byjavax.xml.parsers.SAXParserFactory
      extended byorg.apache.crimson.jaxp.SAXParserFactoryImpl

public class SAXParserFactoryImpl
extends javax.xml.parsers.SAXParserFactory

This is the implementation specific class for the javax.xml.parsers.SAXParserFactory. This is the platform default implementation for the platform.


Field Summary
private  Hashtable features
           
 
Fields inherited from class javax.xml.parsers.SAXParserFactory
 
Constructor Summary
SAXParserFactoryImpl()
           
 
Method Summary
 boolean getFeature(String name)
          returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
 javax.xml.parsers.SAXParser newSAXParser()
          Creates a new instance of SAXParser using the currently configured factory parameters.
private  SAXParserImpl newSAXParserImpl()
          Common code for translating exceptions
 void setFeature(String name, boolean value)
          Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader.
 
Methods inherited from class javax.xml.parsers.SAXParserFactory
isNamespaceAware, isValidating, newInstance, setNamespaceAware, setValidating
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

features

private Hashtable features
Constructor Detail

SAXParserFactoryImpl

public SAXParserFactoryImpl()
Method Detail

newSAXParser

public javax.xml.parsers.SAXParser newSAXParser()
                                         throws javax.xml.parsers.ParserConfigurationException
Creates a new instance of SAXParser using the currently configured factory parameters.

Returns:
javax.xml.parsers.SAXParser
Throws:
javax.xml.parsers.ParserConfigurationException

newSAXParserImpl

private SAXParserImpl newSAXParserImpl()
                                throws javax.xml.parsers.ParserConfigurationException,
                                       org.xml.sax.SAXNotRecognizedException,
                                       org.xml.sax.SAXNotSupportedException
Common code for translating exceptions

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws javax.xml.parsers.ParserConfigurationException,
                       org.xml.sax.SAXNotRecognizedException,
                       org.xml.sax.SAXNotSupportedException
Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

getFeature

public boolean getFeature(String name)
                   throws javax.xml.parsers.ParserConfigurationException,
                          org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException