Package writer2latex.office
Class EmbeddedBinaryObject
java.lang.Object
writer2latex.office.EmbeddedObject
writer2latex.office.EmbeddedBinaryObject
This class represents an embedded object with a binary representation in an ODF package document
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EmbeddedBinaryObject
(String sName, String sType, OfficeDocument doc, SimpleZipReader source) Package private constructor for use when reading an object from a package ODF file -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose thisEmbeddedObject
.byte[]
Get the binary data for this objectMethods inherited from class writer2latex.office.EmbeddedObject
getName, getType
-
Constructor Details
-
EmbeddedBinaryObject
protected EmbeddedBinaryObject(String sName, String sType, OfficeDocument doc, SimpleZipReader source) Package private constructor for use when reading an object from a package ODF file- Parameters:
sName
- The name of the object.sType
- The MIME-type of the object.doc
- The document containing the object.source
- ASimpleZipReader
containing the object
-
-
Method Details
-
getBinaryData
public byte[] getBinaryData()Get the binary data for this object- Returns:
- A
byte
array containing the object's data.
-
dispose
public void dispose()Description copied from class:EmbeddedObject
Dispose thisEmbeddedObject
. This implies that the content is nullified and the object is removed from the collection in theOfficeDocument
.- Overrides:
dispose
in classEmbeddedObject
-