Changeset 6882 in josm for trunk/src/org/openstreetmap/josm/io/FileImporter.java
- Timestamp:
- 2014-02-25T00:21:39+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/FileImporter.java
r6830 r6882 10 10 import java.util.List; 11 11 import java.util.zip.GZIPInputStream; 12 import java.util.zip.ZipEntry; 13 import java.util.zip.ZipInputStream; 12 14 13 15 import javax.swing.JOptionPane; … … 156 158 } 157 159 160 public static ZipInputStream getZipInputStream(InputStream in) throws IOException { 161 if (in == null) { 162 return null; 163 } 164 ZipInputStream zis = new ZipInputStream(in); 165 // Positions the stream at the beginning of first entry 166 ZipEntry ze = zis.getNextEntry(); 167 if (ze != null && Main.isDebugEnabled()) { 168 Main.debug("Zip entry: "+ze.getName()); 169 } 170 return zis; 171 } 172 158 173 /** 159 174 * Returns the enabled state of this {@code FileImporter}. When enabled, it is listed and usable in "File->Open" dialog.
Note:
See TracChangeset
for help on using the changeset viewer.