|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.usermodel.HSSFObjectData
public final class HSSFObjectData
Represents binary object (i.e. OLE) data stored in the file. Eg. A GIF, JPEG etc...
Constructor Summary | |
---|---|
HSSFObjectData(ObjRecord record,
POIFSFileSystem poifs)
Constructs object data by wrapping a lower level object record. |
Method Summary | |
---|---|
protected EmbeddedObjectRefSubRecord |
findObjectRecord()
Finds the EmbeddedObjectRefSubRecord, or throws an Exception if there wasn't one |
DirectoryEntry |
getDirectory()
Gets the object data. |
byte[] |
getObjectData()
Returns the data portion, for an ObjectData that doesn't have an associated POIFS Directory Entry |
java.lang.String |
getOLE2ClassName()
Returns the OLE2 Class Name of the object |
boolean |
hasDirectoryEntry()
Does this ObjectData have an associated POIFS Directory Entry? (Not all do, those that don't have a data portion) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HSSFObjectData(ObjRecord record, POIFSFileSystem poifs)
record
- the low-level object record.poifs
- the filesystem, required for retrieving the object data.Method Detail |
---|
public java.lang.String getOLE2ClassName()
public DirectoryEntry getDirectory() throws java.io.IOException
hasDirectoryEntry()
java.io.IOException
- if there was an error reading the data.public byte[] getObjectData()
public boolean hasDirectoryEntry()
protected EmbeddedObjectRefSubRecord findObjectRecord()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |