Changeset 30495 in osm for applications/editors/josm/plugins/mirrored_download
- Timestamp:
- 2014-06-14T14:05:38+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/mirrored_download
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mirrored_download/build.xml
r30416 r30495 5 5 <property name="commit.message" value=""/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="7 001"/>7 <property name="plugin.main.version" value="7248"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/mirrored_download/src/mirrored_download/UrlSelectionDialog.java
r30436 r30495 25 25 26 26 import org.openstreetmap.josm.Main; 27 import org.openstreetmap.josm.io. MirroredInputStream;27 import org.openstreetmap.josm.io.CachedFile; 28 28 29 29 public class UrlSelectionDialog … … 106 106 Collection<String> urls = new ArrayList<String>(); 107 107 try ( 108 InputStream in = new MirroredInputStream(src, 24*60*60);108 InputStream in = new CachedFile(src).setMaxAge(24*60*60).getInputStream(); 109 109 BufferedReader reader = new BufferedReader(new InputStreamReader(in)) 110 110 ) {
Note:
See TracChangeset
for help on using the changeset viewer.