Class XSSFObjectData

    • Method Detail

      • getOLE2ClassName

        public java.lang.String getOLE2ClassName()
        Specified by:
        getOLE2ClassName in interface ObjectData
        Returns:
        the OLE2 Class Name of the object
      • getOleObject

        public CTOleObject getOleObject()
        Returns:
        the CTOleObject associated with the shape
      • getObjectData

        public byte[] getObjectData()
                             throws java.io.IOException
        Specified by:
        getObjectData in interface ObjectData
        Returns:
        the data portion, for an ObjectData that doesn't have an associated POIFS Directory Entry
        Throws:
        java.io.IOException
      • getObjectPart

        public PackagePart getObjectPart()
        Returns:
        the package part of the object data
      • hasDirectoryEntry

        public boolean hasDirectoryEntry()
        Specified by:
        hasDirectoryEntry in interface ObjectData
        Returns:
        does this ObjectData have an associated POIFS Directory Entry? (Not all do, those that don't have a data portion)
      • getDirectory

        public DirectoryEntry getDirectory()
                                    throws java.io.IOException
        Description copied from interface: ObjectData
        Gets the object data. Only call for ones that have data though. See ObjectData.hasDirectoryEntry(). The caller has to close the corresponding POIFSFileSystem
        Specified by:
        getDirectory in interface ObjectData
        Returns:
        the object data as an OLE2 directory.
        Throws:
        java.io.IOException - if there was an error reading the data.
      • getFileName

        public java.lang.String getFileName()
        The filename of the embedded image
        Specified by:
        getFileName in interface ObjectData
        Returns:
        a filename suggestion - inspecting/interpreting the Directory object probably gives a better result