Changeset 30495 in osm for applications/editors/josm/plugins/mirrored_download/src
- Timestamp:
- 2014-06-14T14:05:38+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.