|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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)
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 enabled)
Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader. |
void |
setNamespaceAware(boolean awareness)
Specifies that the parser produced by this code will provide support for XML namespaces. |
void |
setValidating(boolean value)
Specifies that the parser produced by this code will validate documents as they are parsed. |
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 SAXParserFactory
name
- The name of the property to be retrieved.
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
XMLReader.getProperty(java.lang.String)
public SAXParser newSAXParser() throws ParserConfigurationException, SAXException
SAXParserFactory
newSAXParser
in class SAXParserFactory
ParserConfigurationException
- if a parser cannot
be created which satisfies the requested configuration.
SAXException
public void setFeature(java.lang.String name, boolean enabled) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
SAXParserFactory
setFeature
in class SAXParserFactory
name
- The name of the feature to be set.enabled
- The value of the feature to be set.
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
XMLReader.setFeature(java.lang.String, boolean)
public void setNamespaceAware(boolean awareness)
SAXParserFactory
false
.
setNamespaceAware
in class SAXParserFactory
awareness
- true if the parser produced by this code will
provide support for XML namespaces; false otherwise.public void setValidating(boolean value)
SAXParserFactory
false
.
setValidating
in class SAXParserFactory
value
- true if the parser produced by this code will
validate documents as they are parsed; false otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |