public class EmbeddedBinaryObject extends EmbeddedObject
Modifier | Constructor and Description |
---|---|
protected |
EmbeddedBinaryObject(java.lang.String sName,
java.lang.String sType,
OfficeDocument doc,
SimpleZipReader source)
Package private constructor for use when reading an object from a
package ODF file
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose this
EmbeddedObject . |
byte[] |
getBinaryData()
Get the binary data for this object
|
getName, getType
protected EmbeddedBinaryObject(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.doc
- The document containing the object.source
- A SimpleZipReader
containing the objectpublic byte[] getBinaryData()
byte
array containing the object's data.public 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