Class NoteStructureSubRecord


public class NoteStructureSubRecord extends SubRecord
Represents a NoteStructure (0xD) sub record.

The docs say nothing about it. The length of this record is always 26 bytes.

Author:
Yegor Kozlov
  • Field Details

  • Constructor Details

    • NoteStructureSubRecord

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

      public NoteStructureSubRecord(RecordInputStream in)
      Constructs a NoteStructureSubRecord and sets its fields appropriately.
  • Method Details

    • validateSid

      protected void validateSid(short id)
      Checks the sid matches the expected side for this record
      Specified by:
      validateSid in class Record
      Parameters:
      id - the expected sid.
    • fillFields

      protected void fillFields(RecordInputStream in)
      Read the record data from the supplied RecordInputStream
      Specified by:
      fillFields in class Record
      Parameters:
      in - the RecordInputstream to read the record from
    • toString

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

      public int serialize(int offset, byte[] data)
      Serialize the record data into the supplied array of bytes
      Specified by:
      serialize in class Record
      Parameters:
      offset - offset in the data
      data - the data to serialize into
      Returns:
      size of the record
    • getRecordSize

      public int getRecordSize()
      Size of record
      Overrides:
      getRecordSize in class Record
    • getSid

      public short getSid()
      Description copied from class: Record
      return the non static version of the id for this record.
      Specified by:
      getSid in class Record
      Returns:
      id of this record.