Package org.apache.poi.hslf.usermodel
Class HSLFObjectData
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFObjectData
- All Implemented Interfaces:
GenericRecord,ObjectData
A class that represents object data embedded in a slide show.
-
Constructor Summary
ConstructorsConstructorDescriptionHSLFObjectData(ExOleObjStg storage) Creates the object data wrapping the record that contains the object data. -
Method Summary
Modifier and TypeMethodDescriptionReturn the record that contains the object data.List<? extends GenericRecord>Gets an input stream which returns the binary of the embedded data.voidsetData(byte[] data) Sets the embedded data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericRecordTypeMethods inherited from interface org.apache.poi.sl.usermodel.ObjectData
getBytes, getDirectory, hasDirectoryEntry
-
Constructor Details
-
HSLFObjectData
Creates the object data wrapping the record that contains the object data.- Parameters:
storage- the record that contains the object data.
-
-
Method Details
-
getInputStream
Description copied from interface:ObjectDataGets an input stream which returns the binary of the embedded data.- Specified by:
getInputStreamin interfaceObjectData- Returns:
- the input stream which will contain the binary of the embedded data.
-
getOutputStream
- Specified by:
getOutputStreamin interfaceObjectData- Returns:
- the object data as stream (for writing)
-
setData
Sets the embedded data.- Parameters:
data- the embedded data.- Throws:
IOException
-
getExOleObjStg
Return the record that contains the object data.- Returns:
- the record that contains the object data.
-
getOLE2ClassName
- Specified by:
getOLE2ClassNamein interfaceObjectData- Returns:
- the OLE2 Class Name of the object
-
getFileName
- Specified by:
getFileNamein interfaceObjectData- Returns:
- a filename suggestion - inspecting/interpreting the Directory object probably gives a better result
-
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
getGenericChildren
- Specified by:
getGenericChildrenin interfaceGenericRecord
-