Changeset 14630 in josm for trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
- Timestamp:
- 2019-01-03T20:11:27+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/session/SessionWriter.java
r14120 r14630 9 9 import java.nio.charset.StandardCharsets; 10 10 import java.nio.file.Files; 11 import java.nio.file.Path; 11 12 import java.util.ArrayList; 12 13 import java.util.Collection; … … 64 65 private final boolean zip; 65 66 67 private Path output; 66 68 private ZipOutputStream zipOut; 67 69 … … 195 197 public boolean isZip() { 196 198 return zip; 199 } 200 201 /** 202 * Returns the path of the output file. 203 * 204 * @return the path of the output file 205 */ 206 public Path getOutput() { 207 return output; 197 208 } 198 209 } … … 329 340 */ 330 341 public void write(File f) throws IOException { 331 try (OutputStream out = Files.newOutputStream(f.toPath())) { 342 output = f.toPath(); 343 try (OutputStream out = Files.newOutputStream(output)) { 332 344 write(out); 333 345 }
Note:
See TracChangeset
for help on using the changeset viewer.