org.apache.xerces.jaxp
Class SAXParserImpl

java.lang.Object
  |
  +--javax.xml.parsers.SAXParser
        |
        +--org.apache.xerces.jaxp.SAXParserImpl

public class SAXParserImpl
extends javax.xml.parsers.SAXParser

The SAXParser implementation for the Apache Xerces XML parser.

Version:
$Revision: 1.3 $ $Date: 2000/11/16 00:57:43 $
Author:
Pierpaolo Fumagalli (Apache Software Foundation, Exoffice Technologies)

Constructor Summary
protected SAXParserImpl(boolean namespaces, boolean validation)
          Create a new SAXParserFactoryImpl instance.
 
Method Summary
 Parser getParser()
          Returns the underlying Parser object which is wrapped by this SAXParserImpl implementation.
 java.lang.Object getProperty(java.lang.String name)
          returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
 XMLReader getXMLReader()
          Returns the XMLReader that is encapsulated by the implementation of this class.
 boolean isNamespaceAware()
          Returns whether or not this parser supports XML namespaces.
 boolean isValidating()
          Returns whether or not this parser supports validating XML content.
 void setProperty(java.lang.String name, java.lang.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
 

Constructor Detail

SAXParserImpl

protected SAXParserImpl(boolean namespaces,
                        boolean validation)
                 throws javax.xml.parsers.ParserConfigurationException
Create a new SAXParserFactoryImpl instance.
Method Detail

getParser

public Parser getParser()
Returns the underlying Parser object which is wrapped by this SAXParserImpl implementation.
Overrides:
getParser in class javax.xml.parsers.SAXParser

getXMLReader

public XMLReader getXMLReader()
                       throws SAXException
Returns the XMLReader that is encapsulated by the implementation of this class.
Overrides:
getXMLReader in class javax.xml.parsers.SAXParser

isNamespaceAware

public boolean isNamespaceAware()
Returns whether or not this parser supports XML namespaces.
Overrides:
isNamespaceAware in class javax.xml.parsers.SAXParser

isValidating

public boolean isValidating()
Returns whether or not this parser supports validating XML content.
Overrides:
isValidating in class javax.xml.parsers.SAXParser

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws SAXNotRecognizedException,
                        SAXNotSupportedException
Sets the particular property in the underlying implementation of org.xml.sax.XMLReader.
Overrides:
setProperty in class javax.xml.parsers.SAXParser
Tags copied from class: javax.xml.parsers.SAXParser
Parameters:
name - The name of the property to be set.
value - The value of the property to be set.
Throws:
SAXNotRecognizedException - When the underlying XMLReader does not recognize the property name.
SAXNotSupportedException - When the underlying XMLReader recognizes the property name but doesn't support the property.
See Also:
XMLReader.setProperty(java.lang.String, java.lang.Object)

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws SAXNotRecognizedException,
                                    SAXNotSupportedException
returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
Overrides:
getProperty in class javax.xml.parsers.SAXParser
Tags copied from class: javax.xml.parsers.SAXParser
Parameters:
name - The name of the property to be retrieved.
Returns:
Value of the requested property.
Throws:
SAXNotRecognizedException - When the underlying XMLReader does not recognize the property name.
SAXNotSupportedException - When the underlying XMLReader recognizes the property name but doesn't support the property.
See Also:
XMLReader.getProperty(java.lang.String)


Copyright © 1999-2000 Apache XML Project. All Rights Reserved.