public class StreetsideCache extends org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob<java.lang.String,org.openstreetmap.josm.data.cache.BufferedImageCacheEntry>
| Modifier and Type | Class and Description |
|---|---|
static class |
StreetsideCache.Type
Types of images.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
id |
private java.net.URL |
url |
| Constructor and Description |
|---|
StreetsideCache(java.lang.String id,
StreetsideCache.Type type)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.openstreetmap.josm.data.cache.BufferedImageCacheEntry |
createCacheEntry(byte[] content) |
java.lang.String |
getCacheKey() |
java.net.URL |
getUrl() |
protected boolean |
isObjectLoadable() |
public StreetsideCache(java.lang.String id, StreetsideCache.Type type)
id - The id of the image.type - The type of image that must be downloaded (THUMBNAIL or
FULL_IMAGE).public java.lang.String getCacheKey()
public java.net.URL getUrl()
protected org.openstreetmap.josm.data.cache.BufferedImageCacheEntry createCacheEntry(byte[] content)
createCacheEntry in class org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob<java.lang.String,org.openstreetmap.josm.data.cache.BufferedImageCacheEntry>protected boolean isObjectLoadable()
isObjectLoadable in class org.openstreetmap.josm.data.cache.JCSCachedTileLoaderJob<java.lang.String,org.openstreetmap.josm.data.cache.BufferedImageCacheEntry>