org.apache.poi.hssf.usermodel
Class HSSFObjectData

java.lang.Object
  extended by org.apache.poi.hssf.usermodel.HSSFObjectData

public class HSSFObjectData
extends java.lang.Object

Represents binary object (i.e. OLE) data stored in the file. Eg. A GIF, JPEG etc...

Author:
Daniel Noll

Constructor Summary
HSSFObjectData(ObjRecord record, POIFSFileSystem poifs)
          Constructs object data by wrapping a lower level object record.
 
Method Summary
 DirectoryEntry getDirectory()
          Gets the object data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSSFObjectData

public HSSFObjectData(ObjRecord record,
                      POIFSFileSystem poifs)
Constructs object data by wrapping a lower level object record.

Parameters:
record - the low-level object record.
poifs - the filesystem, required for retrieving the object data.
Method Detail

getDirectory

public DirectoryEntry getDirectory()
                            throws java.io.IOException
Gets the object data.

Returns:
the object data as an OLE2 directory.
Throws:
java.io.IOException - if there was an error reading the data.


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.