| Modifier and Type | Field and Description |
|---|---|
protected String |
configDir |
protected String |
preffixSizeFileName |
| Constructor and Description |
|---|
TileCacheImpl(String baseDir) |
| Modifier and Type | Method and Description |
|---|---|
TiledLayer |
createLayer(TileServer provider,
String strategyType)
Builds a new layer
|
String |
getBaseDirectory()
Gets the base directory
|
String |
getConfigurationDirectory()
Gets the configuration directory
|
boolean |
isFullDiskCache()
Returns true if the size of data in disk is greater than the MAX_CACHE_SIZE
|
void |
removeLayer(TiledLayer layer)
Removes a layer from list.
|
void |
saveSize()
Saves a size file
|
void |
updateBaseDirectory(String dir)
Updates the string with the base directory
|
void |
updateSize(long sizeBytes)
Updates the size of the tiles downloaded
|
protected String preffixSizeFileName
protected String configDir
public TileCacheImpl(String baseDir)
public void updateBaseDirectory(String dir)
TileCacheupdateBaseDirectory in interface TileCachepublic void updateSize(long sizeBytes)
sizeBytes - public void saveSize()
IOExceptionpublic boolean isFullDiskCache()
TileCacheisFullDiskCache in interface TileCachepublic TiledLayer createLayer(TileServer provider, String strategyType)
TileCachecreateLayer in interface TileCachepublic String getBaseDirectory()
public String getConfigurationDirectory()
TileCachegetConfigurationDirectory in interface TileCachepublic void removeLayer(TiledLayer layer)
TileCacheremoveLayer in interface TileCache