Class IntelHexRecord


  • public class IntelHexRecord
    extends java.lang.Object
    • Field Detail

      • END_OF_FILE_RECORD_TYPE

        public static final int END_OF_FILE_RECORD_TYPE
        See Also:
        Constant Field Values
      • EXTENDED_SEGMENT_ADDRESS_RECORD_TYPE

        public static final int EXTENDED_SEGMENT_ADDRESS_RECORD_TYPE
        See Also:
        Constant Field Values
      • START_SEGMENT_ADDRESS_RECORD

        public static final int START_SEGMENT_ADDRESS_RECORD
        See Also:
        Constant Field Values
      • EXTENDED_LINEAR_ADDRESS_RECORD_TYPE

        public static final int EXTENDED_LINEAR_ADDRESS_RECORD_TYPE
        See Also:
        Constant Field Values
      • START_LINEAR_ADDRESS_RECORD_TYPE

        public static final int START_LINEAR_ADDRESS_RECORD_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • IntelHexRecord

        public IntelHexRecord​(int recordLength,
                              int loadOffset,
                              int recordType,
                              byte[] data,
                              int checksum)
        Use this constructor when reading, so you know if the record's checksum is correct.
        Parameters:
        recordLength -
        loadOffset -
        recordType -
        data -
        checksum -
      • IntelHexRecord

        public IntelHexRecord​(int recordLength,
                              int loadOffset,
                              int recordType,
                              byte[] data)
        Only use this constructor when writing...it computes the checksum for you (cheating)!
        Parameters:
        recordLength -
        loadOffset -
        recordType -
        data -
    • Method Detail

      • getRecordLength

        public int getRecordLength()
      • getLoadOffset

        public int getLoadOffset()
      • getRecordType

        public int getRecordType()
      • getData

        public byte[] getData()
      • getDataString

        public java.lang.String getDataString()
      • getReportedChecksum

        public int getReportedChecksum()
      • getActualChecksum

        public int getActualChecksum()
      • isReportedChecksumCorrect

        public boolean isReportedChecksumCorrect()
      • format

        public java.lang.String format()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object