LibreOffice Module xmerge (master) 1
Public Member Functions | Private Attributes | List of all members
org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject Class Reference

This class represents embedded object's in an OpenOffice.org document that have a binary representation. More...

Inheritance diagram for org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject:
[legend]
Collaboration diagram for org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject:
[legend]

Public Member Functions

 EmbeddedBinaryObject (String name, String type)
 Constructor for an embedded object stored using an XML representation. More...
 
byte[] getBinaryData ()
 This method returns the data for this object. More...
 
void setBinaryData (byte[] data)
 Sets the data for this object. More...
 
- Public Member Functions inherited from org.openoffice.xmerge.converter.xml.EmbeddedObject
 EmbeddedObject (String name, String type)
 Constructor for an embedded object stored using an XML representation. More...
 
final String getName ()
 Retrieves the name of the embedded object represented by an instance of this class. More...
 
final String getType ()
 Retrieves the type of the embedded object represented by an instance of this class. More...
 

Private Attributes

byte[] objData = null
 The object's binary representation. More...
 

Additional Inherited Members

- Protected Attributes inherited from org.openoffice.xmerge.converter.xml.EmbeddedObject
String objName
 
String objType
 
OfficeZip zipFile = null
 Representation of the file from which this object was read. More...
 
boolean hasChanged = false
 Flag indicating if this document has changed since reading or is new. More...
 

Detailed Description

This class represents embedded object's in an OpenOffice.org document that have a binary representation.

Definition at line 29 of file EmbeddedBinaryObject.java.

Constructor & Destructor Documentation

◆ EmbeddedBinaryObject()

org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject.EmbeddedBinaryObject ( String  name,
String  type 
)
inline

Constructor for an embedded object stored using an XML representation.

Parameters
nameThe name of the object.
typeThe mime-type of the object. See the class summary.

Definition at line 40 of file EmbeddedBinaryObject.java.

References name, and type.

Member Function Documentation

◆ getBinaryData()

byte[] org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject.getBinaryData ( )
inline

This method returns the data for this object.

Returns
A byte array containing the object's data.

Definition at line 62 of file EmbeddedBinaryObject.java.

References org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject.objData, org.openoffice.xmerge.converter.xml.EmbeddedObject.objName, and org.openoffice.xmerge.converter.xml.EmbeddedObject.zipFile.

◆ setBinaryData()

void org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject.setBinaryData ( byte[]  data)
inline

Sets the data for this object.

Parameters
dataA byte array containing data for the object.

Definition at line 77 of file EmbeddedBinaryObject.java.

References org.openoffice.xmerge.converter.xml.EmbeddedObject.hasChanged, and org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject.objData.

Member Data Documentation

◆ objData

byte [] org.openoffice.xmerge.converter.xml.EmbeddedBinaryObject.objData = null
private

The documentation for this class was generated from the following file: