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);