Class CachedAttributionBingAerialTileSource.BingAttributionData
- java.lang.Object
-
- org.openstreetmap.josm.io.CacheCustomContent<java.io.IOException>
-
- org.openstreetmap.josm.data.imagery.CachedAttributionBingAerialTileSource.BingAttributionData
-
- Enclosing class:
- CachedAttributionBingAerialTileSource
class CachedAttributionBingAerialTileSource.BingAttributionData extends CacheCustomContent<java.io.IOException>
-
-
Field Summary
-
Fields inherited from class org.openstreetmap.josm.io.CacheCustomContent
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY
-
-
Constructor Summary
Constructors Constructor Description BingAttributionData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisOffline()Checks underlying resource is not accessed in offline mode.protected byte[]updateData()This function will be executed when an update is required.-
Methods inherited from class org.openstreetmap.josm.io.CacheCustomContent
flushData, getData, getDataString, isCacheValid, updateForceString, updateIfRequired, updateIfRequiredString
-
-
-
-
Constructor Detail
-
BingAttributionData
BingAttributionData()
-
-
Method Detail
-
updateData
protected byte[] updateData() throws java.io.IOException
Description copied from class:CacheCustomContentThis function will be executed when an update is required. It has to be implemented by the inheriting class and should use a worker if it has a long wall time as the function is executed in the current thread.- Specified by:
updateDatain classCacheCustomContent<java.io.IOException>- Returns:
- the data to cache
- Throws:
java.io.IOException
-
isOffline
protected boolean isOffline()
Description copied from class:CacheCustomContentChecks underlying resource is not accessed in offline mode.- Specified by:
isOfflinein classCacheCustomContent<java.io.IOException>- Returns:
- whether resource is accessed in offline mode
-
-