From 387df0313f5f3dda3748b7d0644586c029c8516c Mon Sep 17 00:00:00 2001 From: Andreas Lenzen Date: Sat, 22 Jul 2023 18:52:45 +0200 Subject: [PATCH] upgrade to 0.0.7 --- pom.xml | 2 +- src/main/java/net/alenzen/intelHex/IntelHexFile.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 17a4a0c..070a2c0 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ intelhex Intel Hex Parser net.alenzen.intelHex - 0.0.6-SNAPSHOT-jdk${java.version} + 0.0.7-SNAPSHOT-jdk${java.version} jar Library to read and modify Intel Hex Files https://github.com/Luncher91/IntelHex/ diff --git a/src/main/java/net/alenzen/intelHex/IntelHexFile.java b/src/main/java/net/alenzen/intelHex/IntelHexFile.java index 9dd3b3d..9282b05 100644 --- a/src/main/java/net/alenzen/intelHex/IntelHexFile.java +++ b/src/main/java/net/alenzen/intelHex/IntelHexFile.java @@ -33,6 +33,14 @@ private IntelHexFile(List lines, HexFormat format) { this.hexFormat = format; } + public static IntelHexFile create() { + return create(HexFormat.I32HEX); + } + + public static IntelHexFile create(HexFormat format) { + return new IntelHexFile(new ArrayList<>(), format); + } + public static IntelHexFile parse(String filename) throws InvalidFormatException, FileNotFoundException, IOException { return parse(new FileReader(filename), null);