org.eclipse.ercp.jaxp.implForCore
Class SAXParserFactoryImpl

java.lang.Object
  extended by javax.xml.parsers.SAXParserFactory
      extended by org.eclipse.ercp.jaxp.implForCore.SAXParserFactoryImpl

public class SAXParserFactoryImpl
extends SAXParserFactory

SAXParserFactory implementation for J2ME and eXML-j2me


Constructor Summary
SAXParserFactoryImpl()
          Constructor for SAXParserFactoryImpl.
 
Method Summary
 boolean getFeature(java.lang.String name)
          Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.
 SAXParser newSAXParser()
          Creates a new instance of a SAXParser 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()
Constructor for SAXParserFactoryImpl.

Method Detail

newSAXParser

public SAXParser newSAXParser()
                       throws ParserConfigurationException,
                              SAXException
Description copied from class: SAXParserFactory
Creates a new instance of a SAXParser using the currently configured factory parameters.

Specified by:
newSAXParser in class SAXParserFactory
Returns:
A new instance of a SAXParser.
Throws:
ParserConfigurationException - if a parser cannot be created which satisfies the requested configuration.
SAXException
See Also:
SAXParserFactory.newSAXParser()

getFeature

public boolean getFeature(java.lang.String name)
                   throws ParserConfigurationException,
                          SAXNotRecognizedException,
                          SAXNotSupportedException
Description copied from class: SAXParserFactory
Returns the particular property requested for in the underlying implementation of org.xml.sax.XMLReader.

Specified by:
getFeature in class SAXParserFactory
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.
ParserConfigurationException
See Also:
SAXParserFactory.getFeature(String)

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws ParserConfigurationException,
                       SAXNotRecognizedException,
                       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

Specified by:
setFeature in class SAXParserFactory
Parameters:
name - The name of the feature to be set.
value - The value of the feature 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.
ParserConfigurationException
See Also:
XMLReader.setFeature(java.lang.String, boolean)