org.apache.crimson.jaxp
Class SAXParserImpl

java.lang.Object
  extended byjavax.xml.parsers.SAXParser
      extended byorg.apache.crimson.jaxp.SAXParserImpl

public class SAXParserImpl
extends javax.xml.parsers.SAXParser

This is the implementation specific class for the javax.xml.parsers.SAXParser.


Field Summary
private  boolean namespaceAware
           
private  org.xml.sax.Parser parser
           
private  boolean validating
           
private  org.xml.sax.XMLReader xmlReader
           
 
Constructor Summary
(package private) SAXParserImpl(javax.xml.parsers.SAXParserFactory spf, Hashtable features)
          Create a SAX parser with the associated features
 
Method Summary
 org.xml.sax.Parser getParser()
           
 Object getProperty(String name)
          returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
 org.xml.sax.XMLReader getXMLReader()
          Returns the XMLReader that is encapsulated by the implementation of this class.
 boolean isNamespaceAware()
           
 boolean isValidating()
           
private  void setFeatures(Hashtable features)
          Set any features of our XMLReader based on any features set on the SAXParserFactory.
 void setProperty(String name, Object value)
          Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.
 
Methods inherited from class javax.xml.parsers.SAXParser
parse, parse, parse, parse, parse, parse, parse, parse, parse, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlReader

private org.xml.sax.XMLReader xmlReader

parser

private org.xml.sax.Parser parser

validating

private boolean validating

namespaceAware

private boolean namespaceAware
Constructor Detail

SAXParserImpl

SAXParserImpl(javax.xml.parsers.SAXParserFactory spf,
              Hashtable features)
        throws org.xml.sax.SAXException
Create a SAX parser with the associated features

Parameters:
features - Hashtable of SAX features, may be null
Method Detail

setFeatures

private void setFeatures(Hashtable features)
                  throws org.xml.sax.SAXNotSupportedException,
                         org.xml.sax.SAXNotRecognizedException
Set any features of our XMLReader based on any features set on the SAXParserFactory. XXX Does not handle possible conflicts between SAX feature names and JAXP specific feature names, eg. SAXParserFactory.isValidating()

Throws:
org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException

getParser

public org.xml.sax.Parser getParser()
                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getXMLReader

public org.xml.sax.XMLReader getXMLReader()
Returns the XMLReader that is encapsulated by the implementation of this class.


isNamespaceAware

public boolean isNamespaceAware()

isValidating

public boolean isValidating()

setProperty

public void setProperty(String name,
                        Object value)
                 throws org.xml.sax.SAXNotRecognizedException,
                        org.xml.sax.SAXNotSupportedException
Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.

Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

getProperty

public Object getProperty(String name)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException