Package org.apache.poi.hssf.record
Class EmbeddedObjectRefSubRecord
java.lang.Object
org.apache.poi.hssf.record.SubRecord
org.apache.poi.hssf.record.EmbeddedObjectRefSubRecord
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord
ftPictFmla (0x0009)
A sub-record within the OBJ record which stores a reference to an object stored in a separate entry within the OLE2 compound file.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.hssf.record.SubRecord
SubRecord.SubRecordTypes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()byte[]shortgetSid()Gets the stream ID containing the actual data.voidvoidsetOleClassname(String oleClassname) voidsetStorageId(int storageId) voidsetUnknownFormulaData(byte[] formularData) Methods inherited from class org.apache.poi.hssf.record.SubRecord
createSubRecord, getMaxRecordLength, isTerminating, serialize, setMaxRecordLength, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Field Details
-
sid
public static final short sid- See Also:
-
-
Constructor Details
-
EmbeddedObjectRefSubRecord
public EmbeddedObjectRefSubRecord() -
EmbeddedObjectRefSubRecord
-
EmbeddedObjectRefSubRecord
-
-
Method Details
-
getSid
public short getSid() -
serialize
-
getStreamId
Gets the stream ID containing the actual data. The data itself can be found under a top-level directory entry in the OLE2 filesystem under the name "MBDxxxxxxxx" where xxxxxxxx is this ID converted into hex (in big endian order, funnily enough.)- Returns:
- the data stream ID. Possibly
null
-
getOLEClassName
-
getObjectData
public byte[] getObjectData() -
copy
-
setUnknownFormulaData
public void setUnknownFormulaData(byte[] formularData) -
setOleClassname
-
setStorageId
public void setStorageId(int storageId) -
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classSubRecord
-
getGenericProperties
-