javax.xml.parsers
Class SAXParserFactory
java.lang.Object
|
+--javax.xml.parsers.SAXParserFactory
public abstract class
SAXParserFactoryextends
Object SAXParserFactory is used to bootstrap JAXP wrappers for
SAX parsers.
Note that the JAXP 1.1 spec does not specify how
the isValidating() or isNamespaceAware()
flags relate to the SAX2 feature flags controlling those
same features.
Author:- Andrew Selkirk, David Brownell
SAXParserFactory
protected SAXParserFactory()
getFeature
public boolean getFeature(java.lang.String name)
Retrieves a current factory feature flag setting.
Parameters:
Throws:
isNamespaceAware
public boolean isNamespaceAware()
isValidating
public boolean isValidating()
newInstance
public static SAXParserFactory newInstance()
newSAXParser
public SAXParser newSAXParser()
Returns a new instance of a SAXParser using the platform
default implementation and the currently specified factory
feature flag settings.
Throws:
setFeature
public void setFeature(java.lang.String name, boolean value)
Establishes a factory parameter corresponding to the
specified feature flag.
Parameters:
Throws:
SAXNotRecognizedException
- if the specified SAX2 feature flag is not recognizedSAXNotSupportedException
- if the specified SAX2 feature flag values can not be set,
perhaps because of sequencing requirements (which could
be met by using SAX2 directly)
setNamespaceAware
public void setNamespaceAware(boolean value)
Parameters:
setValidating
public void setValidating(boolean value)
Parameters: