Class HSSFObjectData

  • All Implemented Interfaces:
    ObjectData, Picture, Shape, SimpleShape

    public final class HSSFObjectData
    extends HSSFPicture
    implements ObjectData
    Represents binary object (i.e. OLE) data stored in the file. Eg. A GIF, JPEG etc...

    Right now, 13, july, 2012 can not be created from scratch

    • Method Detail

      • getOLE2ClassName

        public java.lang.String getOLE2ClassName()
        Specified by:
        getOLE2ClassName in interface ObjectData
        Returns:
        the OLE2 Class Name of the object
      • 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.
      • getObjectData

        public byte[] getObjectData()
        Specified by:
        getObjectData in interface ObjectData
        Returns:
        the data portion, for an ObjectData that doesn't have an associated POIFS Directory Entry
      • 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)