Changeset 31716 in osm for applications/editors/josm/plugins/seachart/josmtos57/src
- Timestamp:
- 2015-10-27T09:09:48+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/josmtos57/src/josmtos57/Josmtos57.java
r31704 r31716 20 20 public class Josmtos57 { 21 21 22 // http://opendatacommons.org/licenses/odbl/1-0/ 23 24 /* 25 URL website = new URL("http://www.website.com/information.asp"); 26 try (InputStream in = website.openStream()) { Files.copy(in, target, StandardCopyOption.REPLACE_EXISTING); } 27 */ 28 22 29 static byte[] header = { 23 30 '0', '0', '2', '6', '2', '3', 'L', 'E', '1', ' ', '0', '9', '0', '0', '0', '7', '3', ' ', ' ', ' ', '6', '6', '0', '4', '0', '0', '0', '0', '0', '0', '0', '0', … … 94 101 crc.update(buf, 0, idx); 95 102 try { 96 File file = new File(args[2] + "/" +args[3]);103 File file = new File(args[2] + args[3]); 97 104 if (file.exists()) file.delete(); 98 105 out = new FileOutputStream(file, false); … … 105 112 106 113 try { 107 File file = new File(args[2] + " /CATALOG.031");114 File file = new File(args[2] + "CATALOG.031"); 108 115 if (file.exists()) file.delete(); 109 116 out = new FileOutputStream(file, false);
Note:
See TracChangeset
for help on using the changeset viewer.