Package org.apache.poi.hslf.record
Class ExEmbed
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordContainer
-
- org.apache.poi.hslf.record.ExEmbed
-
- All Implemented Interfaces:
GenericRecord
- Direct Known Subclasses:
ExControl
public class ExEmbed extends RecordContainer
This data represents an embedded object in the document.
-
-
Field Summary
-
Fields inherited from class org.apache.poi.hslf.record.RecordContainer
_children
-
-
Constructor Summary
Constructors Modifier Constructor Description ExEmbed()Create a new ExEmbed, with blank fieldsprotectedExEmbed(byte[] source, int start, int len)Set things up, and find our more interesting childrenprotectedExEmbed(RecordAtom embedAtom)Constructor for derived classes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClipboardName()Gets the name that appears in the paste special dialog.ExEmbedAtomgetExEmbedAtom()Gets theExEmbedAtom.ExOleObjAtomgetExOleObjAtom()Gets theExOleObjAtom.StringgetMenuName()Gets the name used for menus and the Links dialog box.StringgetProgId()Gets the OLE Programmatic Identifier.longgetRecordType()Returns the type (held as a little endian in bytes 3 and 4) that this class handles.voidsetClipboardName(String clipboardName)voidsetMenuName(String menuName)voidsetProgId(String progId)voidwriteOut(OutputStream out)Have the contents printer out into an OutputStream, used when writing a file back out to disk.-
Methods inherited from class org.apache.poi.hslf.record.RecordContainer
addChildAfter, addChildBefore, appendChildRecord, findFirstOfType, getChildRecords, getGenericProperties, handleParentAwareRecords, isAnAtom, removeChild, setChildRecord, writeOut
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
-
-
-
Constructor Detail
-
ExEmbed
protected ExEmbed(byte[] source, int start, int len)Set things up, and find our more interesting children- 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.
-
ExEmbed
protected ExEmbed(RecordAtom embedAtom)
Constructor for derived classes- Parameters:
embedAtom- the new embedAtom
-
ExEmbed
public ExEmbed()
Create a new ExEmbed, with blank fields
-
-
Method Detail
-
getExEmbedAtom
public ExEmbedAtom getExEmbedAtom()
Gets theExEmbedAtom.- Returns:
- the
ExEmbedAtom.
-
getExOleObjAtom
public ExOleObjAtom getExOleObjAtom()
Gets theExOleObjAtom.- Returns:
- the
ExOleObjAtom.
-
getMenuName
public String getMenuName()
Gets the name used for menus and the Links dialog box.- Returns:
- the name used for menus and the Links dialog box.
-
setMenuName
public void setMenuName(String menuName)
-
getProgId
public String getProgId()
Gets the OLE Programmatic Identifier.- Returns:
- the OLE Programmatic Identifier.
-
setProgId
public void setProgId(String progId)
-
getClipboardName
public String getClipboardName()
Gets the name that appears in the paste special dialog.- Returns:
- the name that appears in the paste special dialog.
-
setClipboardName
public void setClipboardName(String clipboardName)
-
getRecordType
public long getRecordType()
Returns the type (held as a little endian in bytes 3 and 4) that this class handles.- Specified by:
getRecordTypein classRecord- Returns:
- the record type.
-
writeOut
public void writeOut(OutputStream out) throws IOException
Have the contents printer out into an OutputStream, used when writing a file back out to disk.- Specified by:
writeOutin classRecord- Parameters:
out- the output stream.- Throws:
IOException- if there was an error writing to the stream.
-
-