diff --git a/pom.xml b/pom.xml index c36d3b5..59309c9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.github.miachm.sods SODS jar - 1.6.5 + 1.6.6 Simple ODS library A library for load/save ODS files in java. diff --git a/src/com/github/miachm/sods/Compressor.java b/src/com/github/miachm/sods/Compressor.java index 11afad9..a6e9888 100644 --- a/src/com/github/miachm/sods/Compressor.java +++ b/src/com/github/miachm/sods/Compressor.java @@ -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); diff --git a/src/com/github/miachm/sods/OdsWritter.java b/src/com/github/miachm/sods/OdsWritter.java index 296e80a..a8ec6dd 100644 --- a/src/com/github/miachm/sods/OdsWritter.java +++ b/src/com/github/miachm/sods/OdsWritter.java @@ -42,6 +42,7 @@ private void save() throws IOException { } catch (XMLStreamException e) { throw new GenerateOdsException(e); } + out.flush(); out.close(); }