net.jxta.impl.document
Class DOMXMLDocument
java.lang.Object
net.jxta.impl.document.TextElementCommon
net.jxta.impl.document.XMLElementCommon
net.jxta.impl.document.DOMXMLElement
net.jxta.impl.document.DOMXMLDocument
- All Implemented Interfaces:
- Attributable, Document, Element, StructuredDocument, StructuredTextDocument, TextDocument, TextElement, XMLDocument, XMLElement, TextDocumentCommon, XMLDocumentCommon
public class DOMXMLDocument
- extends DOMXMLElement
- implements XMLDocumentCommon
This class is an implementation of the StructuredDocument interface using
DOM
- See Also:
- W3C Document Object Model (DOM),
DOM Java Language Binding,
Java API for XML Processing (JAXP),
org.w3c.dom
Methods inherited from class net.jxta.impl.document.DOMXMLElement |
addAttribute, addAttribute, appendChild, equals, getAttribute, getAttributes, getChildren, getChildren, getName, getParent, getRoot, getTextValue |
INSTANTIATOR
public static final StructuredDocumentFactory.TextInstantiator INSTANTIATOR
toString
public String toString()
-
- Specified by:
toString
in interface TextDocument
- Overrides:
toString
in class Object
getMimeType
public MimeMediaType getMimeType()
-
- Specified by:
getMimeType
in interface Document
getFileExtension
public String getFileExtension()
-
- Specified by:
getFileExtension
in interface Document
getStream
public InputStream getStream()
throws IOException
-
- Specified by:
getStream
in interface Document
- Throws:
IOException
sendToStream
public void sendToStream(OutputStream stream)
throws IOException
-
- Specified by:
sendToStream
in interface Document
- Throws:
IOException
getReader
public Reader getReader()
-
- Specified by:
getReader
in interface TextDocument
sendToWriter
public void sendToWriter(Writer writer)
throws IOException
-
- Specified by:
sendToWriter
in interface TextDocument
- Throws:
IOException
createElement
public Element createElement(Object key)
-
- Specified by:
createElement
in interface StructuredDocument
createElement
public Element createElement(Object key,
Object val)
-
- Specified by:
createElement
in interface StructuredDocument
createElement
public TextElement createElement(String name)
-
- Specified by:
createElement
in interface StructuredTextDocument
createElement
public TextElement createElement(String name,
String value)
-
- Specified by:
createElement
in interface StructuredTextDocument
getAssocNode
protected Node getAssocNode()
- Description copied from class:
DOMXMLElement
- Returns the DOM Node associated with this StructuredDocument element.
- Overrides:
getAssocNode
in class DOMXMLElement
- Returns:
- Node The DOM Node associated with this StructuredDocument element.