org.apache.mirae.j2me.xml
Class SAXParserFactoryImpl

java.lang.Object
  extended byjavax.xml.parsers.SAXParserFactory
      extended byorg.apache.mirae.j2me.xml.SAXParserFactoryImpl

public class SAXParserFactoryImpl
extends SAXParserFactory

This is an implementation of javax.xml.parsers.SAXParserFactory

Author:
Ias (iasandcb@tmax.co.kr)

Field Summary
static java.lang.String NAMESPACE_PREFIXES_FEATURE
          Namespace prefixes feature ("namespace-prefixes").
static java.lang.String NAMESPACES_FEATURE
          Namespaces feature ("namespaces").
static java.lang.String SAX_FEATURE_PREFIX
          SAX feature prefix ("http://xml.org/sax/features/").
 
Constructor Summary
SAXParserFactoryImpl()
          a 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.
 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
 

Field Detail

SAX_FEATURE_PREFIX

public static final java.lang.String SAX_FEATURE_PREFIX
SAX feature prefix ("http://xml.org/sax/features/").

See Also:
Constant Field Values

NAMESPACES_FEATURE

public static final java.lang.String NAMESPACES_FEATURE
Namespaces feature ("namespaces").

See Also:
Constant Field Values

NAMESPACE_PREFIXES_FEATURE

public static final java.lang.String NAMESPACE_PREFIXES_FEATURE
Namespace prefixes feature ("namespace-prefixes").

See Also:
Constant Field Values
Constructor Detail

SAXParserFactoryImpl

public SAXParserFactoryImpl()
a default constructor

Method Detail

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws ParserConfigurationException,
                       SAXNotRecognizedException,
                       SAXNotSupportedException
Description copied from class: SAXParserFactory
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:
SAXNotSupportedException - When the underlying XMLReader recognizes the property name but doesn't support the property.
SAXNotRecognizedException - When the underlying XMLReader does not recognize the property name.
ParserConfigurationException
See Also:
SAXParserFactory.setFeature(java.lang.String, boolean)

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:
SAXNotSupportedException - When the underlying XMLReader recognizes the property name but doesn't support the property.
SAXNotRecognizedException - When the underlying XMLReader does not recognize the property name.
ParserConfigurationException
See Also:
SAXParserFactory.getFeature(java.lang.String)

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()


Copyright © 2005 Apache Software Foundation. All Rights Reserved.