Skip to content

Commit

Permalink
Merge pull request #83 from MinMatth-Magi/fix/bytearrayoutputstream-a…
Browse files Browse the repository at this point in the history
…daptation

fix: flush OdsWritter stream
  • Loading branch information
miachm authored Dec 7, 2023
2 parents fbe2eb2 + 6571ad1 commit 8225ade
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.github.miachm.sods</groupId>
<artifactId>SODS</artifactId>
<packaging>jar</packaging>
<version>1.6.5</version>
<version>1.6.6</version>

<name>Simple ODS library</name>
<description>A library for load/save ODS files in java.</description>
Expand Down
4 changes: 4 additions & 0 deletions src/com/github/miachm/sods/Compressor.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public void close() throws IOException {
out.close();
}

public void flush() throws IOException {
out.flush();
}

void addEntry(byte[] data,String name) throws IOException {
out.putNextEntry(new ZipEntry(name));
out.write(data);
Expand Down
1 change: 1 addition & 0 deletions src/com/github/miachm/sods/OdsWritter.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private void save() throws IOException {
} catch (XMLStreamException e) {
throw new GenerateOdsException(e);
}
out.flush();
out.close();
}

Expand Down

0 comments on commit 8225ade

Please sign in to comment.