|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.parsers.DocumentBuilderFactory
Defines a factory API that enables applications to obtain a parser that produces DOM object trees from XML documents.
Constructor Summary | |
protected |
DocumentBuilderFactory()
|
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. |
abstract DocumentBuilder |
newDocumentBuilder()
Creates a new instance of a DocumentBuilder using the currently configured parameters. |
static DocumentBuilderFactory |
newInstance()
Obtain a new instance of a DocumentBuilderFactory . |
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 DocumentBuilderFactory()
Method Detail |
public static DocumentBuilderFactory newInstance()
DocumentBuilderFactory
. 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.DocumentBuilderFactory". 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
DocumentBuilderFactory
it can use the factory to
configure and obtain parser instances.
public abstract DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
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 |