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 boolean
isOffline()
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:CacheCustomContent
This 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:
updateData
in classCacheCustomContent<java.io.IOException>
- Returns:
- the data to cache
- Throws:
java.io.IOException
-
isOffline
protected boolean isOffline()
Description copied from class:CacheCustomContent
Checks underlying resource is not accessed in offline mode.- Specified by:
isOffline
in classCacheCustomContent<java.io.IOException>
- Returns:
- whether resource is accessed in offline mode
-
-