Commit 03d1c341 authored by Riegel's avatar Riegel
Browse files

Fix: Use correct InputStream for parsing of ZipEntry

2 merge requests!28Version 3.17.0 Release,!26Add ZIP-archive support
Showing with 3 additions and 2 deletions
+3 -2
......@@ -10,6 +10,7 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream;
......@@ -30,9 +31,9 @@ public class CityGmlZipEntry {
return new ErroneousEntry(entry, ZipEntryErrorType.EXCESSIVE_FILESIZE);
} else {
try {
ZipInputStream zis = new ZipInputStream(archive.getInputStream(entry));
InputStream is = archive.getInputStream(entry);
CityGmlParser.gagLogger(true);
CityDoctorModel model = CityGmlParser.parseCityGmlStream(zis, config);
CityDoctorModel model = CityGmlParser.parseCityGmlStream(is, config);
return new CityGmlZipEntry(entry.getName(), model);
} catch (CityGmlParseException | InvalidGmlFileException e) {
logger.error(e);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment