Interface ObjectShape<S extends Shape<S,​P>,​P extends TextParagraph<S,​P,​? extends TextRun>>

    • Method Detail

      • getPictureData

        PictureData getPictureData()
        Returns the picture data for this picture.
        the picture data for this picture.
      • getProgId

        String getProgId()
        Returns the ProgID that stores the OLE Programmatic Identifier. A ProgID is a string that uniquely identifies a given object, for example, "Word.Document.8" or "Excel.Sheet.8".
        the ProgID
      • getFullName

        String getFullName()
        Returns the full name of the embedded object, e.g. "Microsoft Word Document" or "Microsoft Office Excel Worksheet".
        the full name of the embedded object
      • updateObjectData

        OutputStream updateObjectData​(ObjectMetaData.Application application,
                                      ObjectMetaData metaData)
                               throws IOException
        Updates the ole data. If there wasn't an object registered before, a new ole embedding is registered in the parent slideshow.

        For HSLF this needs to be a POIFSFileSystem stream.

        application - a preset application enum
        metaData - or a custom metaData object, can be null if the application has been set
        an OutputStream which receives the new data, the data will be persisted on close()
        IOException - if the linked object data couldn't be found or a new object data couldn't be initialized
      • readObjectData

        default InputStream readObjectData()
                                    throws IOException
        Reads the ole data as stream - the application specific stream is served The raw data serves the outer/wrapped object, which is usually a POIFSFileSystem stream, whereas this method return the unwrapped entry
        an InputStream which serves the object data
        IOException - if the linked object data couldn't be found
      • readObjectDataRaw

        default InputStream readObjectDataRaw()
                                       throws IOException
        Convenience method to return the raw data as InputStream
        the raw data stream
        IOException - if the data couldn't be retrieved
      • getObjectData

        ObjectData getObjectData()
        the data object