class IntelHexRecord {

	private static int checksum(int recordLength, int loadOffset, int recordType, byte[] data) {
		int accum = 0;
		accum += recordLength & 0xff;
		accum += loadOffset & 0xff;
		accum += (loadOffset >> 8) & 0xff;
		accum += recordType & 0xff;
		for (int ii = 0; ii < data.length; ++ii) {
			final int t = data[ii] & 0xff;
			accum += t;
		}
		final int lowest = accum & 0xff;
		final int chk = (0x100 - lowest) & 0xff;
		return chk;
	}

	public  IntelHexRecord(int recordLength, int loadOffset, int recordType, byte[] data,
			int checksum);
	public  IntelHexRecord(int recordLength, int loadOffset, int recordType, byte[] data);

}