Class ExEmbed

Direct Known Subclasses:
ExControl

public class ExEmbed extends RecordContainer
This data represents an embedded object in the document.
  • 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

      protected ExEmbed(RecordAtom embedAtom)
      Constructor for derived classes
      Parameters:
      embedAtom - the new embedAtom
    • ExEmbed

      public ExEmbed()
      Create a new ExEmbed, with blank fields
  • Method Details

    • getExEmbedAtom

      public ExEmbedAtom getExEmbedAtom()
      Gets the ExEmbedAtom.
      Returns:
      the ExEmbedAtom.
    • getExOleObjAtom

      public ExOleObjAtom getExOleObjAtom()
      Gets the ExOleObjAtom.
      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:
      getRecordType in class Record
      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:
      writeOut in class Record
      Parameters:
      out - the output stream.
      Throws:
      IOException - if there was an error writing to the stream.