Class HSLFObjectData

java.lang.Object
org.apache.poi.hslf.usermodel.HSLFObjectData
All Implemented Interfaces:
ObjectData

public class HSLFObjectData extends Object implements ObjectData
A class that represents object data embedded in a slide show.
  • Constructor Details

    • HSLFObjectData

      public HSLFObjectData(ExOleObjStg storage)
      Creates the object data wrapping the record that contains the object data.
      Parameters:
      storage - the record that contains the object data.
  • Method Details

    • getInputStream

      public InputStream getInputStream()
      Description copied from interface: ObjectData
      Gets an input stream which returns the binary of the embedded data.
      Specified by:
      getInputStream in interface ObjectData
      Returns:
      the input stream which will contain the binary of the embedded data.
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Specified by:
      getOutputStream in interface ObjectData
      Returns:
      the object data as stream (for writing)
      Throws:
      IOException
    • setData

      public void setData(byte[] data) throws IOException
      Sets the embedded data.
      Parameters:
      data - the embedded data.
      Throws:
      IOException
    • getExOleObjStg

      public ExOleObjStg getExOleObjStg()
      Return the record that contains the object data.
      Returns:
      the record that contains the object data.
    • getOLE2ClassName

      public String getOLE2ClassName()
      Specified by:
      getOLE2ClassName in interface ObjectData
      Returns:
      the OLE2 Class Name of the object
    • getFileName

      public String getFileName()
      Specified by:
      getFileName in interface ObjectData
      Returns:
      a filename suggestion - inspecting/interpreting the Directory object probably gives a better result