JADE v6.1

com.dautelle.xml.sax
Class SAXParserFactoryImpl

java.lang.Object
  extended byjavax.xml.parsers.SAXParserFactory
      extended bycom.dautelle.xml.sax.SAXParserFactoryImpl

public final class SAXParserFactoryImpl
extends javax.xml.parsers.SAXParserFactory

This class represents the JAXP factory class for creating SAX parsers. This factory creates an instance of XMLReaderImpl.

SAX Plug-In Installation:

In order to automatically use this library's XMLReaderImpl at run-time, you may either:

Version:
4.5, May 26, 2003
Author:
Jean-Marie Dautelle

Constructor Summary
SAXParserFactoryImpl()
          Default constructor.
 
Method Summary
 boolean getFeature(java.lang.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 XMLReaderImpl using the currently configured factory parameters.
 void setFeature(java.lang.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
 

Constructor Detail

SAXParserFactoryImpl

public SAXParserFactoryImpl()
Default constructor.

Method Detail

newSAXParser

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

Returns:
a new instance of XMLReaderImpl.
Throws:
javax.xml.parsers.ParserConfigurationException - if XMLReaderImpl cannot satisfy the requested configuration.
org.xml.sax.SAXException - any SAX exception, possibly wrapping another exception.

getFeature

public boolean getFeature(java.lang.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.

Parameters:
name - the name of the property to be retrieved.
Returns:
value of the requested property.
Throws:
javax.xml.parsers.ParserConfigurationException - if XMLReaderImpl cannot satisfy the requested configuration.
org.xml.sax.SAXNotRecognizedException - when the underlying XMLReader does not recognize the property name.
org.xml.sax.SAXNotSupportedException - when the underlying XMLReader recognizes the property name but doesn't support the property.

setFeature

public void setFeature(java.lang.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. A list of the core features and properties can be found at http://www.megginson.com/SAX/Java/features.html

Parameters:
name - the name of the feature to be set.
value - the value of the feature to be set.
Throws:
javax.xml.parsers.ParserConfigurationException - if XMLReaderImpl cannot satisfy the requested configuration.
org.xml.sax.SAXNotRecognizedException - when the underlying XMLReader does not recognize the property name.
org.xml.sax.SAXNotSupportedException - when the underlying XMLReader does recognizes the property name but doesn't support the property.

JADE v6.1

Copyright © 2004 Jean-Marie Dautelle.