public class JAXPSAXParserFactory
extends javax.xml.parsers.SAXParserFactory
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 and Description |
---|
JAXPSAXParserFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
getFeature(java.lang.String name) |
static javax.xml.parsers.SAXParserFactory |
newInstance() |
javax.xml.parsers.SAXParser |
newSAXParser() |
void |
setFeature(java.lang.String name,
boolean enabled) |
void |
setNamespaceAware(boolean awareness) |
void |
setValidating(boolean value) |
public static javax.xml.parsers.SAXParserFactory newInstance()
public boolean getFeature(java.lang.String name) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getFeature
in class javax.xml.parsers.SAXParserFactory
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public javax.xml.parsers.SAXParser newSAXParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
newSAXParser
in class javax.xml.parsers.SAXParserFactory
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public void setFeature(java.lang.String name, boolean enabled) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setFeature
in class javax.xml.parsers.SAXParserFactory
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setNamespaceAware(boolean awareness)
setNamespaceAware
in class javax.xml.parsers.SAXParserFactory
public void setValidating(boolean value)
setValidating
in class javax.xml.parsers.SAXParserFactory