ee4a0b93b4
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. |
||
---|---|---|
nbproject | ||
src/cz/jaybee | ||
.gitignore | ||
README.md | ||
build.xml | ||
manifest.mf |
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();