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 $
- Author:
- James Strachan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected DocumentDOCUMENT ME!protected NamespacegetNamespace(String prefix, String uri) protected voidreadElement(Node node, Branch current) protected voidvoidsetDocumentFactory(DocumentFactory docFactory) This sets theDocumentFactoryused to create new documents.
-
Constructor Details
-
DOMReader
public DOMReader() -
DOMReader
-
-
Method Details
-
getDocumentFactory
DOCUMENT ME!- Returns:
- the
DocumentFactoryused to create document objects
-
setDocumentFactory
This sets the
DocumentFactoryused 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-DocumentFactoryused to create DOM4J objects
-
read
-
readTree
-
readElement
-
getNamespace
-
createDocument
-
clearNamespaceStack
protected void clearNamespaceStack()
-