Package org.dom4j.io
Class DOMReader
java.lang.Object
org.dom4j.io.DOMReader
DOMReader
navigates a W3C DOM tree and creates a DOM4J tree
from it.
- Version:
- $Revision: 1.17 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DocumentFactory
DocumentFactory
used to create new document objectsprivate NamespaceStack
stack ofNamespace
andQName
objects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Document
DOCUMENT ME!protected Namespace
getNamespace
(String prefix, String uri) private String
protected void
readElement
(Node node, Branch current) protected void
void
setDocumentFactory
(DocumentFactory docFactory) This sets theDocumentFactory
used to create new documents.
-
Field Details
-
factory
DocumentFactory
used to create new document objects -
namespaceStack
stack ofNamespace
andQName
objects
-
-
Constructor Details
-
DOMReader
public DOMReader() -
DOMReader
-
-
Method Details
-
getDocumentFactory
DOCUMENT ME!- Returns:
- the
DocumentFactory
used to create document objects
-
setDocumentFactory
This sets the
DocumentFactory
used to create new documents. This method allows the building of custom DOM4J tree objects to be implemented easily using a custom derivation ofDocumentFactory
- Parameters:
docFactory
-DocumentFactory
used to create DOM4J objects
-
read
-
readTree
-
readElement
-
getNamespace
-
createDocument
-
clearNamespaceStack
protected void clearNamespaceStack() -
getPrefix
-