Skip to content

Commit

Permalink
upgrade to 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncher91 committed Jul 22, 2023
1 parent dd030cd commit 387df03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<artifactId>intelhex</artifactId>
<name>Intel Hex Parser</name>
<groupId>net.alenzen.intelHex</groupId>
<version>0.0.6-SNAPSHOT-jdk${java.version}</version>
<version>0.0.7-SNAPSHOT-jdk${java.version}</version>
<packaging>jar</packaging>
<description>Library to read and modify Intel Hex Files</description>
<url>https://github.com/Luncher91/IntelHex/</url>
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/net/alenzen/intelHex/IntelHexFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ private IntelHexFile(List<HexFileLine> 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);
Expand Down

0 comments on commit 387df03

Please sign in to comment.