org.apache.poi.hslf.record
Class ExOleObjAtom

java.lang.Object
  extended by org.apache.poi.hslf.record.Record
      extended by org.apache.poi.hslf.record.RecordAtom
          extended by org.apache.poi.hslf.record.ExOleObjAtom

public class ExOleObjAtom
extends RecordAtom

Atom storing information for an OLE object.

Author:
Daniel Noll

Field Summary
static int DRAW_ASPECT_ICON
           
static int DRAW_ASPECT_VISIBLE
           
static int SUBTYPE_CLIPART_GALLERY
           
static int SUBTYPE_DEFAULT
           
static int SUBTYPE_EQUATION
           
static int SUBTYPE_EXCEL
           
static int SUBTYPE_EXCEL_CHART
           
static int SUBTYPE_GRAPH
           
static int SUBTYPE_IMAGE
           
static int SUBTYPE_MEDIA_PLAYER
           
static int SUBTYPE_NOTEIT
           
static int SUBTYPE_ORGANIZATION_CHART
           
static int SUBTYPE_POWERPOINT_PRESENTATION
           
static int SUBTYPE_POWERPOINT_SLIDE
           
static int SUBTYPE_PROJECT
           
static int SUBTYPE_SOUND
           
static int SUBTYPE_WORD_TABLE
           
static int SUBTYPE_WORDART
           
static int TYPE_EMBEDDED
           
static int TYPE_LINKED
           
 
Fields inherited from class org.apache.poi.hslf.record.Record
logger
 
Constructor Summary
protected ExOleObjAtom()
          Constructs a brand new link related atom record.
protected ExOleObjAtom(byte[] source, int start, int len)
          Constructs the link related atom record from its source data.
 
Method Summary
 int getDrawAspect()
          Gets whether the object can be completely seen, or if only the icon is visible.
 boolean getIsBlank()
          Gets whether the object's image is blank.
 int getObjID()
          Gets the unique identifier for the OLE object.
 int getObjStgDataRef()
          Gets the reference to the persistent object
 long getRecordType()
          Returns the type (held as a little endian in bytes 3 and 4) that this class handles.
 int getSubType()
          Gets the type of OLE object.
 int getType()
          Gets whether the object is embedded or linked.
 void writeOut(java.io.OutputStream out)
          Have the contents printer out into an OutputStream, used when writing a file back out to disk (Normally, atom classes will keep their bytes around, but non atom classes will just request the bytes from their children, then chuck on their header and return)
 
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtom
 
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRAW_ASPECT_VISIBLE

public static final int DRAW_ASPECT_VISIBLE
See Also:
Constant Field Values

DRAW_ASPECT_ICON

public static final int DRAW_ASPECT_ICON
See Also:
Constant Field Values

TYPE_EMBEDDED

public static final int TYPE_EMBEDDED
See Also:
Constant Field Values

TYPE_LINKED

public static final int TYPE_LINKED
See Also:
Constant Field Values

SUBTYPE_DEFAULT

public static final int SUBTYPE_DEFAULT
See Also:
Constant Field Values

SUBTYPE_CLIPART_GALLERY

public static final int SUBTYPE_CLIPART_GALLERY
See Also:
Constant Field Values

SUBTYPE_WORD_TABLE

public static final int SUBTYPE_WORD_TABLE
See Also:
Constant Field Values

SUBTYPE_EXCEL

public static final int SUBTYPE_EXCEL
See Also:
Constant Field Values

SUBTYPE_GRAPH

public static final int SUBTYPE_GRAPH
See Also:
Constant Field Values

SUBTYPE_ORGANIZATION_CHART

public static final int SUBTYPE_ORGANIZATION_CHART
See Also:
Constant Field Values

SUBTYPE_EQUATION

public static final int SUBTYPE_EQUATION
See Also:
Constant Field Values

SUBTYPE_WORDART

public static final int SUBTYPE_WORDART
See Also:
Constant Field Values

SUBTYPE_SOUND

public static final int SUBTYPE_SOUND
See Also:
Constant Field Values

SUBTYPE_IMAGE

public static final int SUBTYPE_IMAGE
See Also:
Constant Field Values

SUBTYPE_POWERPOINT_PRESENTATION

public static final int SUBTYPE_POWERPOINT_PRESENTATION
See Also:
Constant Field Values

SUBTYPE_POWERPOINT_SLIDE

public static final int SUBTYPE_POWERPOINT_SLIDE
See Also:
Constant Field Values

SUBTYPE_PROJECT

public static final int SUBTYPE_PROJECT
See Also:
Constant Field Values

SUBTYPE_NOTEIT

public static final int SUBTYPE_NOTEIT
See Also:
Constant Field Values

SUBTYPE_EXCEL_CHART

public static final int SUBTYPE_EXCEL_CHART
See Also:
Constant Field Values

SUBTYPE_MEDIA_PLAYER

public static final int SUBTYPE_MEDIA_PLAYER
See Also:
Constant Field Values
Constructor Detail

ExOleObjAtom

protected ExOleObjAtom()
Constructs a brand new link related atom record.


ExOleObjAtom

protected ExOleObjAtom(byte[] source,
                       int start,
                       int len)
Constructs the link related atom record from its source data.

Parameters:
source - the source data as a byte array.
start - the start offset into the byte array.
len - the length of the slice in the byte array.
Method Detail

getDrawAspect

public int getDrawAspect()
Gets whether the object can be completely seen, or if only the icon is visible.

Returns:
the draw aspect, one of the DRAW_ASPECT_* constants.

getType

public int getType()
Gets whether the object is embedded or linked.

Returns:
the type, one of the TYPE_EMBEDDED_* constants.

getObjID

public int getObjID()
Gets the unique identifier for the OLE object.

Returns:
the object ID.

getSubType

public int getSubType()
Gets the type of OLE object.

Returns:
the sub-type, one of the SUBTYPE_* constants.

getObjStgDataRef

public int getObjStgDataRef()
Gets the reference to the persistent object

Returns:
the reference to the persistent object, corresponds with an ExOleObjStg storage container.

getIsBlank

public boolean getIsBlank()
Gets whether the object's image is blank.

Returns:
true if the object's image is blank.

getRecordType

public long getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles.

Specified by:
getRecordType in class Record

writeOut

public void writeOut(java.io.OutputStream out)
              throws java.io.IOException
Have the contents printer out into an OutputStream, used when writing a file back out to disk (Normally, atom classes will keep their bytes around, but non atom classes will just request the bytes from their children, then chuck on their header and return)

Specified by:
writeOut in class Record
Throws:
java.io.IOException


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