Changeset 7248 in josm for trunk/src/org/openstreetmap/josm/io/imagery
- Timestamp:
- 2014-06-14T12:40:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java
r7242 r7248 18 18 import org.openstreetmap.josm.data.imagery.ImageryInfo.ImageryType; 19 19 import org.openstreetmap.josm.data.imagery.Shape; 20 import org.openstreetmap.josm.io. MirroredInputStream;20 import org.openstreetmap.josm.io.CachedFile; 21 21 import org.openstreetmap.josm.io.UTFInputStreamReader; 22 22 import org.xml.sax.Attributes; … … 50 50 SAXParserFactory factory = SAXParserFactory.newInstance(); 51 51 factory.setNamespaceAware(true); 52 try (InputStream in = new MirroredInputStream(source, null, 1*MirroredInputStream.DAYS, null, 53 MirroredInputStream.CachingStrategy.IfModifiedSince)) { 52 try (InputStream in = new CachedFile(source) 53 .setMaxAge(1*CachedFile.DAYS) 54 .setCachingStrategy(CachedFile.CachingStrategy.IfModifiedSince) 55 .getInputStream()) { 54 56 InputSource is = new InputSource(UTFInputStreamReader.create(in)); 55 57 factory.newSAXParser().parse(is, parser);
Note:
See TracChangeset
for help on using the changeset viewer.