Class FtCfSubRecord

java.lang.Object
org.apache.poi.hssf.record.SubRecord
org.apache.poi.hssf.record.FtCfSubRecord
All Implemented Interfaces:
Cloneable

public final class FtCfSubRecord extends SubRecord implements Cloneable
The FtCf structure specifies the clipboard format of the picture-type Obj record containing this FtCf.
  • Field Details

    • sid

      public static final short sid
      See Also:
    • length

      public static final short length
      See Also:
    • METAFILE_BIT

      public static final short METAFILE_BIT
      Specifies the format of the picture is an enhanced metafile.
      See Also:
    • BITMAP_BIT

      public static final short BITMAP_BIT
      Specifies the format of the picture is a bitmap.
      See Also:
    • UNSPECIFIED_BIT

      public static final short UNSPECIFIED_BIT
      Specifies the picture is in an unspecified format that is neither and enhanced metafile nor a bitmap.
      See Also:
  • Constructor Details

    • FtCfSubRecord

      public FtCfSubRecord()
      Construct a new FtPioGrbitSubRecord and fill its data with the default values
    • FtCfSubRecord

      public FtCfSubRecord(LittleEndianInput in, int size)
  • Method Details

    • toString

      public String toString()
      Convert this record to string. Used by BiffViewer and other utilities.
      Overrides:
      toString in class Object
    • serialize

      public void serialize(LittleEndianOutput out)
      Serialize the record data into the supplied array of bytes
      Specified by:
      serialize in class SubRecord
      Parameters:
      out - the stream to serialize into
    • getDataSize

      protected int getDataSize()
      Specified by:
      getDataSize in class SubRecord
      Returns:
      the size of the data for this record (which is always 4 bytes less than the total record size). Note however, that ushort encoded after the record sid is usually but not always the data size.
    • getSid

      public short getSid()
      Returns:
      id of this record.
    • clone

      public FtCfSubRecord clone()
      Specified by:
      clone in class SubRecord
    • getFlags

      public short getFlags()
    • setFlags

      public void setFlags(short flags)