Class EmbeddedObject

  • Direct Known Subclasses:
    EmbeddedBinaryObject, EmbeddedXMLObject

    public abstract class EmbeddedObject
    extends java.lang.Object
    This class represents and embedded object within an ODF package document
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EmbeddedObject​(java.lang.String sName, java.lang.String sType, OfficeDocument doc)
      Construct a new embedded object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose this EmbeddedObject.
      java.lang.String getName()
      Get the name of the embedded object represented by this instance.
      java.lang.String getType()
      Get the MIME type of the embedded object represented by this instance.
      • Methods inherited from class java.lang.Object

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

      • EmbeddedObject

        protected EmbeddedObject​(java.lang.String sName,
                                 java.lang.String sType,
                                 OfficeDocument doc)
        Construct a new embedded object
        Parameters:
        sName - The name of the object.
        sType - The MIME-type of the object.
        doc - The document to which the object belongs.
    • Method Detail

      • getName

        public final java.lang.String getName()
        Get the name of the embedded object represented by this instance. The name refers to the manifest.xml file
        Returns:
        The name of the object.
      • getType

        public final java.lang.String getType()
        Get the MIME type of the embedded object represented by this instance. The MIME type refers to the manifest.xml file
      • dispose

        public void dispose()
        Dispose this EmbeddedObject. This implies that the content is nullified and the object is removed from the collection in the OfficeDocument.