Ignore:
Timestamp:
2015-10-27T09:09:48+01:00 (9 years ago)
Author:
malcolmh
Message:

[seachart] fix errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/josmtos57/src/josmtos57/Josmtos57.java

    r31704 r31716  
    2020public class Josmtos57 {
    2121
     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       
    2229        static byte[] header = {
    2330                '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',
     
    94101                crc.update(buf, 0, idx);
    95102                try {
    96                         File file = new File(args[2] + "/" + args[3]);
     103                        File file = new File(args[2] + args[3]);
    97104                        if (file.exists()) file.delete();
    98105                        out = new FileOutputStream(file, false);
     
    105112               
    106113                try {
    107                         File file = new File(args[2] + "/CATALOG.031");
     114                        File file = new File(args[2] + "CATALOG.031");
    108115                        if (file.exists()) file.delete();
    109116                        out = new FileOutputStream(file, false);
Note: See TracChangeset for help on using the changeset viewer.