Package org.dom4j.io

Class DocumentInputSource

    • Constructor Detail

      • DocumentInputSource

        public DocumentInputSource()
      • DocumentInputSource

        public DocumentInputSource​(Document document)
    • Method Detail

      • getDocument

        public Document getDocument()
        DOCUMENT ME!
        Returns:
        the document which is being used as the SAX InputSource
      • setDocument

        public void setDocument​(Document document)
        Sets the document used as the SAX InputSource
        Parameters:
        document - DOCUMENT ME!
      • getCharacterStream

        public Reader getCharacterStream()
        Note this method is quite inefficent, it turns the in memory XML tree object model into a single block of text which can then be read by other XML parsers. Should only be used with care.
        Overrides:
        getCharacterStream in class InputSource
        Returns:
        DOCUMENT ME!