Changeset 35392 in osm for applications/editors/josm/plugins/seachart/josmtos57/src
- Timestamp:
- 2020-03-22T12:03:02+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/josmtos57/src/josmtos57/Josmtos57.java
r32907 r35392 6 6 import java.io.FileInputStream; 7 7 import java.io.FileOutputStream; 8 import java.io.File Reader;8 import java.io.File; 9 9 import java.io.IOException; 10 10 import java.io.UnsupportedEncodingException; … … 62 62 }; 63 63 64 static BufferedReaderin;64 static File in; 65 65 static FileOutputStream out; 66 66 static S57map map; … … 93 93 System.exit(-1); 94 94 } 95 in = new File(args[0]); 95 96 try { 96 in = new BufferedReader(new FileReader(new File(args[0]))); 97 try { 98 S57osm.OSMmap(in, map, false); 99 } catch (Exception e) { 100 System.err.println("Input data error"); 101 System.exit(-1); 102 } 103 in.close(); 104 } catch (IOException e) { 105 System.err.println("Input file: " + e.getMessage()); 97 S57osm.OSMmap(in, map, false); 98 } catch (Exception e) { 99 System.err.println("Input data error"); 106 100 System.exit(-1); 107 101 }
Note:
See TracChangeset
for help on using the changeset viewer.