public class EmbeddedXMLObject extends EmbeddedObject
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Document |
contentDOM |
protected org.w3c.dom.Document |
stylesDOM |
Modifier | Constructor and Description |
---|---|
protected |
EmbeddedXMLObject(java.lang.String sName,
java.lang.String sType,
OfficeDocument doc,
SimpleZipReader source)
Read an object from an ODF package document
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose this
EmbeddedObject . |
org.w3c.dom.Document |
getContentDOM()
Returns the content data for this embedded object.
|
org.w3c.dom.Document |
getStylesDOM()
Returns the style data for this embedded object.
|
getName, getType
protected org.w3c.dom.Document contentDOM
protected org.w3c.dom.Document stylesDOM
protected EmbeddedXMLObject(java.lang.String sName, java.lang.String sType, OfficeDocument doc, SimpleZipReader source)
sName
- The name of the object.sType
- The MIME-type of the object.source
- A ZIP reader providing the contents of the packagepublic org.w3c.dom.Document getContentDOM() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
- If any parser error occursjava.io.IOException
- If any IO error occurspublic org.w3c.dom.Document getStylesDOM() throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
- If any parser error occursjava.io.IOException
- If any IO error occurspublic void dispose()
EmbeddedObject
EmbeddedObject
. This implies that the content is nullified and the object
is removed from the collection in the OfficeDocument
.dispose
in class EmbeddedObject