Truncate file after writing DataContainer to it
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / container / DataContainers.java
index 4a74e2e50fb79e9a6bafa2165e5bc4816b386e5e..21e54d8975d5379d657e3f6ce468467de9452e24 100644 (file)
@@ -232,6 +232,7 @@ public class DataContainers {
         BinaryFile wf = new BinaryFile( output);
         try {
             writeFile(wf, container);
+            wf.setLength(wf.position());
         } finally {
             wf.close();
         }