Class EmbeddedBinaryObject


  • public class EmbeddedBinaryObject
    extends EmbeddedObject
    This class represents embedded object's in an OpenOffice.org document that have a binary representation.
    • Constructor Summary

      Constructors 
      Constructor Description
      EmbeddedBinaryObject​(java.lang.String name, java.lang.String type)
      Constructor for an embedded object stored using an XML representation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBinaryData()
      This method returns the data for this object.
      void setBinaryData​(byte[] data)
      Sets the data for this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • objData

        protected byte[] objData
        The object's binary representation.
    • Constructor Detail

      • EmbeddedBinaryObject

        public EmbeddedBinaryObject​(java.lang.String name,
                                    java.lang.String type)
        Constructor for an embedded object stored using an XML representation.
        Parameters:
        name - The name of the object.
        type - The mime-type of the object. See the class summary.
    • Method Detail

      • getBinaryData

        public byte[] getBinaryData()
        This method returns the data for this object.
        Returns:
        A byte array containing the object's data.
      • setBinaryData

        public void setBinaryData​(byte[] data)
        Sets the data for this object.
        Parameters:
        data - A byte array containing data for the object.