Class StandardRecord

    • Constructor Detail

      • StandardRecord

        protected StandardRecord()
    • Method Detail

      • getDataSize

        protected abstract int getDataSize()
      • getRecordSize

        public final int getRecordSize()
        Description copied from class: RecordBase
        gives the current serialized size of the record. Should include the sid and reclength (4 bytes).
        Specified by:
        getRecordSize in class RecordBase
        Returns:
        the record size
      • serialize

        public final int serialize​(int offset,
                                   byte[] data)
        Write the data content of this BIFF record including the sid and record length.

        The subclass must write the exact number of bytes as reported by RecordBase.getRecordSize()}

        Specified by:
        serialize in class RecordBase
        Parameters:
        offset - to begin writing at
        data - byte array containing instance data
        Returns:
        number of bytes written
      • serialize

        protected abstract void serialize​(LittleEndianOutput out)
        Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.

        The number of bytes written must equal the record size reported by RecordBase.getRecordSize()} minus four ( record header consisting of a 'ushort sid' and 'ushort reclength' has already been written by their superclass).

        Parameters:
        out - the output object