Changeset 30738 in osm for applications/editors/josm/plugins/wikipedia/src
- Timestamp:
- 2014-10-19T01:27:04+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java
r30737 r30738 25 25 import javax.xml.xpath.XPathFactory; 26 26 27 import org.openstreetmap.josm.Main; 27 28 import org.openstreetmap.josm.data.coor.LatLon; 28 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 116 117 connection.setDoOutput(true); 117 118 118 OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream(), "UTF-8"); 119 out.write("articles=" + encodeURL(Utils.join(",", articleNames))); 120 out.close(); 121 119 try (OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream(), "UTF-8")) { 120 out.write("articles=" + encodeURL(Utils.join(",", articleNames))); 121 } 122 122 123 123 final Scanner scanner = new Scanner(connection.getInputStream(), "UTF-8").useDelimiter("\n"); … … 129 129 status.put(x[0], "1".equals(x[1])); 130 130 } else { 131 System.err.println("Unknown element " + line);131 Main.error("Unknown element " + line); 132 132 } 133 133 }
Note:
See TracChangeset
for help on using the changeset viewer.