Changeset 11453 in josm for trunk/src/org/openstreetmap/josm/data/imagery
- Timestamp:
- 2017-01-12T01:38:04+01:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/imagery
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelper.java
r11018 r11453 2 2 package org.openstreetmap.josm.data.imagery; 3 3 4 import java.io.IOException;5 4 import java.io.InputStream; 6 5 import java.net.MalformedURLException; … … 75 74 * @param in InputStream with pointing to GetCapabilities XML stream 76 75 * @return safe XMLStreamReader, that is not validating external entities, nor loads DTD's 77 * @throws IOException if any I/O error occurs78 76 * @throws XMLStreamException if any XML stream error occurs 79 77 */ 80 public static XMLStreamReader getReader(InputStream in) throws IOException,XMLStreamException {78 public static XMLStreamReader getReader(InputStream in) throws XMLStreamException { 81 79 XMLInputFactory factory = XMLInputFactory.newFactory(); 82 80 // do not try to load external entities, nor validate the XML -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java
r11438 r11453 2 2 package org.openstreetmap.josm.data.imagery; 3 3 4 import java.io.IOException;5 4 import java.util.Map; 6 5 import java.util.concurrent.ThreadPoolExecutor; … … 60 59 * @param readTimeout to remote resource 61 60 * @param headers HTTP headers to be sent along with request 62 * @throws IOException when cache initialization fails63 61 */ 64 62 public TMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache, 65 int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException{63 int connectTimeout, int readTimeout, Map<String, String> headers) { 66 64 CheckParameterUtil.ensureParameterNotNull(cache, "cache"); 67 65 this.cache = cache; -
trunk/src/org/openstreetmap/josm/data/imagery/WMSCachedTileLoader.java
r11438 r11453 2 2 package org.openstreetmap.josm.data.imagery; 3 3 4 import java.io.IOException;5 4 import java.util.Map; 6 5 … … 25 24 */ 26 25 public static final IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.wms.loader.maxjobs", 3); 26 27 27 /** 28 28 * Creates a TileLoader with separate WMS downloader. … … 33 33 * @param readTimeout from tile source 34 34 * @param headers to be sent with requests 35 * @throws IOException when there is a problem creating cache repository36 35 */ 37 36 public WMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache, 38 int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException{37 int connectTimeout, int readTimeout, Map<String, String> headers) { 39 38 40 39 super(listener, cache, connectTimeout, readTimeout, headers);
Note:
See TracChangeset
for help on using the changeset viewer.