Methods Summary |
---|
public abstract boolean | getFeature(java.lang.String name)Returns the particular property requested for in the underlying
implementation of org.xml.sax.XMLReader.
|
public boolean | isNamespaceAware()Indicates whether or not the factory is configured to produce
parsers which are namespace aware.
return namespaceAware;
|
public boolean | isValidating()Indicates whether or not the factory is configured to produce
parsers which validate the XML content during parse.
return validating;
|
public static javax.xml.parsers.SAXParserFactory | newInstance()Obtain a new instance of a SAXParserFactory . This
static method creates a new factory instance
This method uses the following ordered lookup procedure to determine
the SAXParserFactory implementation class to
load:
-
Use the
javax.xml.parsers.SAXParserFactory system
property.
-
Use the properties file "lib/jaxp.properties" in the JRE directory.
This configuration file is in standard
java.util.Properties
format and contains the fully qualified name of the
implementation class with the key being the system property defined
above.
-
Use the Services API (as detailed in the JAR specification), if
available, to determine the classname. The Services API will look
for a classname in the file
META-INF/services/javax.xml.parsers.SAXParserFactory
in jars available to the runtime.
-
Platform default
SAXParserFactory instance.
Once an application has obtained a reference to a
SAXParserFactory it can use the factory to
configure and obtain parser instances.
return new com.sun.ukit.jaxp.ParserFactory();
|
public abstract javax.xml.parsers.SAXParser | newSAXParser()Creates a new instance of a SAXParser using the currently
configured factory parameters.
|
public abstract void | setFeature(java.lang.String name, boolean value)Sets the particular feature in the underlying implementation of
org.xml.sax.XMLReader.
A list of the core features and properties can be found at
http://www.saxproject.org/?selected=get-set
|
public void | setNamespaceAware(boolean awareness)Specifies that the parser produced by this code will
provide support for XML namespaces. By default the value of this is set
to false .
namespaceAware = awareness;
|
public void | setValidating(boolean validating)Specifies that the parser produced by this code will validate
documents as they are parsed. By default the value of this is
set to false.
// NOTE: the factory does not currently support a validating parser
validating = false;
|