Class EndSubRecord

  • All Implemented Interfaces:
    Duplicatable, GenericRecord

    public final class EndSubRecord
    extends SubRecord
    ftEnd (0x0000)

    The end data record is used to denote the end of the subrecords.

    • Constructor Detail

      • EndSubRecord

        public EndSubRecord()
      • EndSubRecord

        public EndSubRecord​(LittleEndianInput in,
                            int size)
        Parameters:
        in - unused (since this record has no data)
        size - must be 0
    • Method Detail

      • isTerminating

        public boolean isTerminating()
        Description copied from class: SubRecord
        Whether this record terminates the sub-record stream. There are two cases when this method must be overridden and return true - EndSubRecord (sid = 0x00) - LbsDataSubRecord (sid = 0x12)
        Overrides:
        isTerminating in class SubRecord
        Returns:
        whether this record is the last in the sub-record stream
      • 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()