j123b567 / java-intelhex-parser

Java IntelHex parser library
15 stars 13 forks source link

Java IntelHex Parser Library

Simples usage:

    // create input stream of some IntelHex data
    InputStream is = new FileInputStream("Application.hex");

    // create IntelHexParserObject
    Parser ihp = new Parser(is);

    // register parser listener
    ihp.setDataListener(new DataListener() {

        @Override
        public void data(long address, byte[] data) {
            // process data
        }

        @Override
        public void eof() {
            // do some action
        }
    });
    ihp.parse();

Build

mvn package

Run demo:

after build go to the target directory and run:

java -jar intelhex-1.0.jar

Install the package to the local repository

mvn clean install