Package org.dom4j.io
Provides input and output via SAX and DOM together with writing dom4j objects to streams as XML text.
-
Interface Summary Interface Description ElementModifier ElementModifier defines a modifier ofElement
objects. -
Class Summary Class Description DispatchHandler DispatchHandler
implements theElementHandler
interface and provides a means to register multipleElementHandler
instances to be used by an event based processor.DocumentInputSource DocumentResult DocumentSource DOMDocumentResult DOMDocumentResult
implements a JAXPSAXResult
for aDocument
.DOMReader DOMReader
navigates a W3C DOM tree and creates a DOM4J tree from it.DOMSAXContentHandler SAXContentHandler
builds W3C DOM object via SAX events.DOMWriter DOMWriter
takes a DOM4J tree and outputs it as a W3C DOM objectElementStack ElementStack
is used internally inside theSAXContentHandler
to maintain a stack ofElement
instances.HTMLWriter HTMLWriter
takes a DOM4J tree and formats it to a stream as HTML.JAXPHelper JAXPHelper
contains some helper methods for working with JAXP.OutputFormat OutputFormat
represents the format configuration used byXMLWriter
and its base classes to format the XML outputPruningDispatchHandler This extension on theDispatchHandler
prunes the currentElement
when there are noElementHandler
objects active the element.PruningElementStack PruningElementStack
is a stack ofElement
instances which will prune the tree when a path expression is reached.SAXContentHandler SAXContentHandler
builds a dom4j tree via SAX events.SAXEventRecorder Records SAX events such that they may be "replayed" at a later time.SAXEventRecorder.SAXEvent SAXHelper SAXHelper
contains some helper methods for working with SAX and XMLReader objects.SAXModifier The SAXModifier reads, modifies and writes XML documents using SAX.SAXModifyContentHandler This extension of the SAXContentHandler writes SAX events immediately to the provided XMLWriter, unless someorg.dom4.ElementHandler
is still handling the current Element.SAXModifyElementHandler ThisElementHandler
is used to triggerElementModifier
objects in order to modify (parts of) the Document on the fly.SAXModifyReader The SAXModifier parses, updates and writes an XML document.SAXReader SAXReader
creates a DOM4J tree from SAX parsing events.SAXReader.SAXEntityResolver SAXValidator SAXValidator
validates an XML document by writing the document to a text buffer and parsing it with a validating SAX parser.SAXWriter SAXWriter
writes a DOM4J tree to a SAX ContentHandler.STAXEventReader STAXEventWriter Writes DOM4JNode
s to a StAX event stream.XMLResult XMLResult
implements a JAXPSAXResult
for an output stream with support for pretty printing and control over how the XML is formatted.XMLWriter XMLWriter
takes a DOM4J tree and formats it to a stream as XML. -
Exception Summary Exception Description SAXModifyException Exception internally thrown by the SAX Modification classes.