|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.xml.parsers.SAXParserFactory
|
+--com.bluecast.xml.JAXPSAXParserFactory
JAXP factory class for creating SAX parsers. This factory creates an instance of Piccolo when a non-validating parser is requested.
If a validating parser is requested, this class will search for
another SAXParserFactory to create the validating parser.
This class will search for a factory in the following ways:
com.bluecast.xml.ValidatingSAXParserFactory
javax.xml.parsers.SAXParserFactory
org.apache.crimson.jaxp.SAXParserFactoryImpl)
ParserConfigurationException
will be thrown.
| Constructor Summary | |
JAXPSAXParserFactory()
|
|
| Method Summary | |
boolean |
getFeature(java.lang.String name)
Retrieves a current factory feature flag setting. |
SAXParser |
newSAXParser()
Returns a new instance of a SAXParser using the platform default implementation and the currently specified factory feature flag settings. |
void |
setFeature(java.lang.String name,
boolean enabled)
Establishes a factory parameter corresponding to the specified feature flag. |
void |
setNamespaceAware(boolean awareness)
|
void |
setValidating(boolean value)
|
| Methods inherited from class javax.xml.parsers.SAXParserFactory |
isNamespaceAware, isValidating, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JAXPSAXParserFactory()
| Method Detail |
public boolean getFeature(java.lang.String name)
throws ParserConfigurationException,
SAXNotRecognizedException,
SAXNotSupportedException
SAXParserFactory
getFeature in class SAXParserFactoryname - identifies the feature flag
SAXNotSupportedException - if the specified SAX2 feature flag values can not be
accessed before parsing begins.
SAXNotRecognizedException - if the specified SAX2 feature flag is not recognized
ParserConfigurationException
public SAXParser newSAXParser()
throws ParserConfigurationException,
SAXException
SAXParserFactory
newSAXParser in class SAXParserFactoryParserConfigurationException - when the parameter combination is not supported
SAXException
public void setFeature(java.lang.String name,
boolean enabled)
throws ParserConfigurationException,
SAXNotRecognizedException,
SAXNotSupportedException
SAXParserFactory
setFeature in class SAXParserFactoryname - identifies the feature flagenabled - specifies the desired flag value
SAXNotSupportedException - if the specified SAX2 feature flag values can not be set,
perhaps because of sequencing requirements (which could
be met by using SAX2 directly)
SAXNotRecognizedException - if the specified SAX2 feature flag is not recognized
ParserConfigurationExceptionpublic void setNamespaceAware(boolean awareness)
setNamespaceAware in class SAXParserFactorypublic void setValidating(boolean value)
setValidating in class SAXParserFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||