Package org.apache.poi.hslf.usermodel
Class HSLFObjectData
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFObjectData
-
- All Implemented Interfaces:
GenericRecord,ObjectData
public class HSLFObjectData extends Object implements ObjectData, GenericRecord
A class that represents object data embedded in a slide show.
-
-
Constructor Summary
Constructors Constructor Description HSLFObjectData(ExOleObjStg storage)Creates the object data wrapping the record that contains the object data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExOleObjStggetExOleObjStg()Return the record that contains the object data.StringgetFileName()List<? extends GenericRecord>getGenericChildren()Map<String,Supplier<?>>getGenericProperties()InputStreamgetInputStream()StringgetOLE2ClassName()OutputStreamgetOutputStream()voidsetData(byte[] data)Sets the embedded data.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericRecordType
-
Methods inherited from interface org.apache.poi.sl.usermodel.ObjectData
getBytes, getDirectory, hasDirectoryEntry
-
-
-
-
Constructor Detail
-
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 Detail
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStreamin interfaceObjectData
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceObjectData
-
setData
public void setData(byte[] data) throws IOExceptionSets 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:
getOLE2ClassNamein interfaceObjectData
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfaceObjectData
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericPropertiesin interfaceGenericRecord
-
getGenericChildren
public List<? extends GenericRecord> getGenericChildren()
- Specified by:
getGenericChildrenin interfaceGenericRecord
-
-