Go to file
Ian Koerich Maciel ee4a0b93b4 Fix parser to work with empty lines after EOF
An exception (data after EOF) was thrown everytime a empty line appears after the EOF record.

Some Intel Hex files do have an extra blank line which couldn't be used with this parser.

Appling this fix, the parser will ignore the record if it's an empty line.
2018-05-25 17:11:39 -03:00
nbproject Refactor class naming 2015-10-09 11:33:33 +02:00
src/cz/jaybee Fix parser to work with empty lines after EOF 2018-05-25 17:11:39 -03:00
.gitignore Refactor class naming 2015-10-09 11:33:33 +02:00
README.md Update README.md 2013-11-08 08:00:20 +01:00
build.xml Add RangeDetector and update demo 2015-03-01 11:14:53 +01:00
manifest.mf Initial IntelHexParser implementation 2012-11-26 16:13:12 +01:00

README.md

Java IntelHex Parser Library

  • IntelHex file format parsing library written in Java.
  • Licensed under Simplified BSD license
  • Including demo code: intelhex to binary converter
	// create input stream of some IntelHex data
	InputStream is = new FileInputStream("Application.hex");
	
	// create IntelHexParserObject
	IntelHexParser ihp = new IntelHexParser(is);
	
	// register parser listener
	ihp.setDataListener(new IntelHexDataListener() {
		@Override
		public void data(long address, byte[] data) {
			// process data
		}
		
		@Override
		public void eof() {
			// do some action
		}
	});
	ihp.parse();