org.apache.poi.hssf.usermodel
public final class HSSFObjectData extends java.lang.Object
Constructor and Description |
---|
HSSFObjectData(ObjRecord record,
POIFSFileSystem poifs)
Constructs object data by wrapping a lower level object record.
|
Modifier and Type | Method and Description |
---|---|
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)
|
public HSSFObjectData(ObjRecord record, POIFSFileSystem poifs)
record
- the low-level object record.poifs
- the filesystem, required for retrieving the object data.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()
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.