Changeset 7089 in josm for trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
- Timestamp:
- 2014-05-09T14:36:55+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java
r7081 r7089 15 15 import java.net.MalformedURLException; 16 16 import java.net.URL; 17 import java.nio.charset.StandardCharsets; 17 18 import java.util.ArrayList; 18 19 import java.util.Arrays; … … 39 40 /** 40 41 * Constructs an input stream from a given filename, URL or internal resource. 41 * 42 * 42 43 * @param name can be:<ul> 43 44 * <li>relative or absolute file name</li> … … 54 55 /** 55 56 * Constructs an input stream from a given filename, URL or internal resource. 56 * 57 * 57 58 * @param name can be:<ul> 58 59 * <li>relative or absolute file name</li> … … 70 71 /** 71 72 * Constructs an input stream from a given filename, URL or internal resource. 72 * 73 * 73 74 * @param name can be:<ul> 74 75 * <li>relative or absolute file name</li> … … 86 87 /** 87 88 * Constructs an input stream from a given filename, URL or internal resource. 88 * 89 * 89 90 * @param name can be:<ul> 90 91 * <li>relative or absolute file name</li> … … 103 104 /** 104 105 * Constructs an input stream from a given filename, URL or internal resource. 105 * 106 * 106 107 * @param name can be:<ul> 107 108 * <li>relative or absolute file name</li> … … 121 122 /** 122 123 * Constructs an input stream from a given filename, URL or internal resource. 123 * 124 * 124 125 * @param name can be:<ul> 125 126 * <li>relative or absolute file name</li> … … 200 201 Pair<String, InputStream> res = null; 201 202 try { 202 ZipFile zipFile = new ZipFile(file );203 ZipFile zipFile = new ZipFile(file, StandardCharsets.UTF_8); 203 204 ZipEntry resentry = null; 204 205 Enumeration<? extends ZipEntry> entries = zipFile.entries(); … … 239 240 cleanup(name, null); 240 241 } 241 242 242 243 public static void cleanup(String name, String destDir) { 243 244 URL url; … … 349 350 * <p> 350 351 * This can causes problems when downloading from certain GitHub URLs. 351 * 352 * 352 353 * @param downloadUrl The resource URL to download 353 354 * @param httpAccept The accepted MIME types sent in the HTTP Accept header. Can be {@code null}
Note:
See TracChangeset
for help on using the changeset viewer.