Changeset 19050 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage/RemoteEntry.java
- Timestamp:
- 2024-04-22T20:59:26+02:00 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/RemoteEntry.java
r19048 r19050 296 296 @Override 297 297 public InputStream getInputStream() throws IOException { 298 final varu = getImageURI();298 final URI u = getImageURI(); 299 299 if (u.getScheme().contains("file")) { 300 300 return Files.newInputStream(Paths.get(u)); 301 301 } 302 final varclient = HttpClient.create(u.toURL());302 final HttpClient client = HttpClient.create(u.toURL()); 303 303 InputStream actual = client.connect().getContent(); 304 304 return new BufferedInputStream(actual) {
Note:
See TracChangeset
for help on using the changeset viewer.