Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.parsers.SAXParserFactory
public abstract class SAXParserFactory
extends java.lang.Object
Constructor Summary | |
Method Summary | |
boolean |
|
Schema |
|
boolean |
|
boolean |
|
boolean |
|
static SAXParserFactory |
|
SAXParser |
|
void |
|
void |
|
void | |
void |
|
void |
|
public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
Returns the specified feature for SAX2 parsers obtained from this factory.
- Parameters:
name
- the feature name
public boolean isNamespaceAware()
Indicates whether parsers obtained from this factory will be XML Namespace aware.
public boolean isValidating()
Indicates whether parsers obtained from this factory will validate their input.
public boolean isXIncludeAware()
Indicates whether parsers obtained from this factory will be XInclude aware.
- Since:
- 1.3
public static SAXParserFactory newInstance() throws FactoryConfigurationError
Creates a new factory instance. The implementation class to load is the first found in the following locations:
- the
javax.xml.parsers.SAXParserFactory
system property- the above named property value in the
$JAVA_HOME/lib/jaxp.properties
file- the class name specified in the
META-INF/services/javax.xml.parsers.SAXParserFactory
system resource- the default factory class
public SAXParser newSAXParser() throws ParserConfigurationException, SAXException
Creates a new parser instance using the currently specified factory configuration.
- Throws:
ParserConfigurationException
- if the specified configuration is not supported
public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
Sets the specified feature for SAX2 parsers obtained from this factory.
- Parameters:
name
- the feature namevalue
- the featurevalue
public void setNamespaceAware(boolean awareness)
Sets whether parsers obtained from this factory will be XML Namespace aware.
public void setValidating(boolean validating)
Sets whether parsers obtained from this factory will validate their input.
public void setXIncludeAware(boolean state)
Sets whether parsers obtained from this factory will be XInclude aware.
- Since:
- 1.3