Class SRECRecord


  • public class SRECRecord
    extends java.lang.Object
    This represents a single line in the SREC file which represents part of the overall program structure.
    • Constructor Detail

      • SRECRecord

        public SRECRecord​(java.lang.String line)
                   throws SRECParseException
        This constructor will take a line from an SREC file and will attempt to parse and validate it.
        Parameters:
        line - String to parse.
        Throws:
        SRECParseException - Thrown in the event invalid data is parsed.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a human readable string containing information about this record.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string
      • getType

        public byte getType()
        Gets the type of record this is.
        Returns:
        the type
      • setType

        public void setType​(byte type)
        Sets the type of record this is.
        Parameters:
        type - the type to set
      • getData

        public byte[] getData()
        Gets the data associated with this record.
        Returns:
        the data
      • setData

        public void setData​(byte[] data)
        Sets the data associated with this record.
        Parameters:
        data - the data to set
      • getAddress

        public long getAddress()
        Gets the memory address associated with this record.
        Returns:
        the address
      • setAddress

        public void setAddress​(long address)
        Sets the memory address associated with this record.
        Parameters:
        address - the address to set