|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.parsers.SAXParserFactory
Defines a factory API that enables applications to configure and obtain a SAX based parser to parse XML documents.
Constructor Summary | |
protected |
SAXParserFactory()
|
Method Summary | |
boolean |
isNamespaceAware()
Indicates whether or not the factory is configured to produce parsers which are namespace aware. |
boolean |
isValidating()
Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. |
static SAXParserFactory |
newInstance()
Obtain a new instance of a SAXParserFactory . |
abstract SAXParser |
newSAXParser()
Creates a new instance of a SAXParser using the currently configured factory parameters. |
void |
setNamespaceAware(boolean awareness)
Specifies that the parser produced by this code will provide support for XML namespaces. |
void |
setValidating(boolean validating)
Specifies that the parser produced by this code will validate documents as they are parsed. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected SAXParserFactory()
Method Detail |
public static SAXParserFactory newInstance()
SAXParserFactory
. This
static method creates a new factory instance based on a System
property setting or uses the platform default if no property
has been defined.The system property that controls which Factory implementation to create is named "javax.xml.parsers.SAXParserFactory". This property names a class that is a concrete subclass of this abstract class. If no property is defined, a platform default will be used.
Once an application has obtained a reference to a
SAXParserFactory
it can use the factory to
configure and obtain parser instances.
public abstract SAXParser newSAXParser() throws ParserConfigurationException, SAXException
public void setNamespaceAware(boolean awareness)
public void setValidating(boolean validating)
public boolean isNamespaceAware()
public boolean isValidating()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |