public HEXRecord(String hexLine) {
		hexLine = hexLine.replace(":", "");
		char[] hexData = hexLine.toCharArray();
		contentLength = Integer.parseInt(new String(hexData, 0, 2),16);
		int addrPtr = 0;
		for(int i = 2; i < 6; i = i+2) {
			firstAddress[addrPtr] = Integer.parseInt(new String(hexData, i, 2),16);
			addrPtr++;
		}
		recordType = Integer.parseInt(new String(hexData, 6, 2),16);
		if(contentLength > 0) {
			data = new int[contentLength];
			int byteCount = 0;
			for(int i = 8; i < hexData.length-2; i = i + 2) {
				data[byteCount] = Integer.parseInt(new String(hexData, i, 2),16);
				byteCount++;
			}
		}
		checksum = Integer.parseInt(new String(hexData, hexData.length-2, 2),16);
	}