Changeset 30102 in osm for applications/editors/josm/plugins/DirectDownload/src
- Timestamp:
- 2013-11-28T23:34:57+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectDownload/src/org/openstreetmap/josm/plugins/directdownload/DirectDownload.java
r29776 r30102 18 18 import org.openstreetmap.josm.plugins.Plugin; 19 19 import org.openstreetmap.josm.plugins.PluginInformation; 20 import org.openstreetmap.josm.tools.Utils; 20 21 import org.xml.sax.SAXException; 21 22 … … 52 53 try { 53 54 URL trackDataUrl = new URL(urlString); 54 InputStream is = trackDataUrl .openStream();55 InputStream is = Utils.openURLAndDecompress(trackDataUrl, true); 55 56 56 57 GpxReader r = new GpxReader(is); … … 77 78 tr("Invalid URL {0}", urlString)); 78 79 } catch (java.io.IOException e) { 80 e.printStackTrace(); 79 81 JOptionPane.showMessageDialog(Main.parent, 80 82 tr("Error fetching URL {0}", urlString)); 81 83 } catch (SAXException e) { 84 e.printStackTrace(); 82 85 JOptionPane.showMessageDialog(Main.parent, 83 86 tr("Error parsing data from URL {0}", urlString));
Note:
See TracChangeset
for help on using the changeset viewer.