Index: /applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/SevenZipReader.java
===================================================================
--- /applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/SevenZipReader.java	(revision 31923)
+++ /applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/SevenZipReader.java	(revision 31924)
@@ -6,8 +6,9 @@
 import java.io.File;
 import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.nio.file.Files;
+import java.nio.file.StandardCopyOption;
 import java.util.List;
 import java.util.Map;
@@ -28,5 +29,4 @@
 import org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler;
 import org.openstreetmap.josm.plugins.opendata.core.util.OdUtils;
-import org.openstreetmap.josm.tools.Utils;
 
 public class SevenZipReader extends ArchiveReader {
@@ -38,7 +38,5 @@
         // Write entire 7z file as a temp file on disk as we need random access later, and "in" can be a network stream
         File tmpFile = File.createTempFile("7z_", ".7z", OdUtils.createTempDir());
-        try (OutputStream out = new FileOutputStream(tmpFile)) {
-            Utils.copyStream(in, out);
-        }
+        Files.copy(in, tmpFile.toPath(), StandardCopyOption.REPLACE_EXISTING);
         // random must be kept open for later extracting
         @SuppressWarnings("resource")
