Package org.dom4j.io

Class DOMReader


  • public class DOMReader
    extends Object

    DOMReader navigates a W3C DOM tree and creates a DOM4J tree from it.

    • Constructor Detail

      • DOMReader

        public DOMReader()
    • Method Detail

      • getDocumentFactory

        public DocumentFactory getDocumentFactory()
        DOCUMENT ME!
        Returns:
        the DocumentFactory used to create document objects
      • setDocumentFactory

        public void setDocumentFactory​(DocumentFactory docFactory)

        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 of DocumentFactory

        Parameters:
        docFactory - DocumentFactory used to create DOM4J objects
      • readTree

        protected void readTree​(Node node,
                                Branch current)
      • readElement

        protected void readElement​(Node node,
                                   Branch current)
      • createDocument

        protected Document createDocument()
      • clearNamespaceStack

        protected void clearNamespaceStack()