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
- Direct Known Subclasses:
ExControl
This data represents an embedded object in the document.
-
Field Summary
Fields inherited from class org.apache.poi.hslf.record.RecordContainer
_children
-
Constructor Summary
ConstructorsModifierConstructorDescriptionExEmbed()
Create a new ExEmbed, with blank fieldsprotected
ExEmbed
(byte[] source, int start, int len) Set things up, and find our more interesting childrenprotected
ExEmbed
(RecordAtom embedAtom) Constructor for derived classes -
Method Summary
Modifier and TypeMethodDescriptionGets the name that appears in the paste special dialog.Gets theExEmbedAtom
.Gets theExOleObjAtom
.Gets the name used for menus and the Links dialog box.Gets the OLE Programmatic Identifier.long
Returns the type (held as a little endian in bytes 3 and 4) that this class handles.void
setClipboardName
(String clipboardName) void
setMenuName
(String menuName) void
void
writeOut
(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, handleParentAwareRecords, isAnAtom, moveChildBefore, moveChildrenAfter, moveChildrenBefore, removeChild, setChildRecord, writeOut
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
Constructor Details
-
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
Constructor for derived classes- Parameters:
embedAtom
- the new embedAtom
-
ExEmbed
public ExEmbed()Create a new ExEmbed, with blank fields
-
-
Method Details
-
getExEmbedAtom
Gets theExEmbedAtom
.- Returns:
- the
ExEmbedAtom
.
-
getExOleObjAtom
Gets theExOleObjAtom
.- Returns:
- the
ExOleObjAtom
.
-
getMenuName
Gets the name used for menus and the Links dialog box.- Returns:
- the name used for menus and the Links dialog box.
-
setMenuName
-
getProgId
Gets the OLE Programmatic Identifier.- Returns:
- the OLE Programmatic Identifier.
-
setProgId
-
getClipboardName
Gets the name that appears in the paste special dialog.- Returns:
- the name that appears in the paste special dialog.
-
setClipboardName
-
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 classRecord
- Returns:
- the record type.
-
writeOut
Have the contents printer out into an OutputStream, used when writing a file back out to disk.- Specified by:
writeOut
in classRecord
- Parameters:
out
- the output stream.- Throws:
IOException
- if there was an error writing to the stream.
-