Changeset 19535 in josm for trunk/src/org/openstreetmap/josm/io/Compression.java
- Timestamp:
- 2026-02-20T11:51:47+01:00 (14 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/Compression.java
r19500 r19535 178 178 public static InputStream getUncompressedFileInputStream(File file) throws IOException { 179 179 try { 180 return getUncompressedFileInputStream(file.toPath()); // NOPMD180 return getUncompressedFileInputStream(file.toPath()); 181 181 } catch (InvalidPathException e) { 182 182 throw new IOException(e); … … 192 192 */ 193 193 public static InputStream getUncompressedFileInputStream(Path path) throws IOException { 194 InputStream in = Files.newInputStream(path); // NOPMD194 InputStream in = Files.newInputStream(path); 195 195 try { 196 196 return byExtension(path.getFileName().toString()).getUncompressedInputStream(in); … … 233 233 */ 234 234 public static OutputStream getCompressedFileOutputStream(File file) throws IOException { 235 return getCompressedFileOutputStream(file.toPath()); // NOPMD235 return getCompressedFileOutputStream(file.toPath()); 236 236 } 237 237 … … 246 246 */ 247 247 public static OutputStream getCompressedFileOutputStream(Path path) throws IOException { 248 OutputStream out = Files.newOutputStream(path); // NOPMD248 OutputStream out = Files.newOutputStream(path); 249 249 try { 250 250 return byExtension(path.getFileName().toString()).getCompressedOutputStream(out);
Note:
See TracChangeset
for help on using the changeset viewer.
