javax.xml.parsers
public abstract class SAXParserFactory extends Object
Constructor Summary | |
---|---|
protected | SAXParserFactory() |
Method Summary | |
---|---|
abstract boolean | getFeature(String name)
Returns the specified feature for SAX2 parsers obtained from this
factory. |
Schema | getSchema()
Returns the schema. |
boolean | isNamespaceAware()
Indicates whether parsers obtained from this factory will be XML
Namespace aware. |
boolean | isValidating()
Indicates whether parsers obtained from this factory will validate
their input. |
boolean | isXIncludeAware()
Indicates whether parsers obtained from this factory will be XInclude
aware. |
static SAXParserFactory | newInstance()
Creates a new factory instance.
|
abstract SAXParser | newSAXParser()
Creates a new parser instance using the currently specified factory
configuration. |
abstract void | setFeature(String name, boolean value)
Sets the specified feature for SAX2 parsers obtained from this factory. |
void | setNamespaceAware(boolean awareness)
Sets whether parsers obtained from this factory will be XML Namespace
aware. |
void | setSchema(Schema schema)
Sets the schema. |
void | setValidating(boolean validating)
Sets whether parsers obtained from this factory will validate their
input. |
void | setXIncludeAware(boolean state)
Sets whether parsers obtained from this factory will be XInclude aware. |
Parameters: name the feature name
Since: 1.3
See Also: SAXParserFactory
Since: 1.3
javax.xml.parsers.SAXParserFactory
system
property$JAVA_HOME/lib/jaxp.properties
fileMETA-INF/services/javax.xml.parsers.SAXParserFactory
system resourceThrows: ParserConfigurationException if the specified configuration is not supported
Parameters: name the feature name value the featurevalue
Since: 1.3
See Also: SAXParserFactory
Since: 1.3