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)
TileCache
updateBaseDirectory
in interface TileCache
public void updateSize(long sizeBytes)
sizeBytes
- public void saveSize()
IOException
public boolean isFullDiskCache()
TileCache
isFullDiskCache
in interface TileCache
public TiledLayer createLayer(TileServer provider, String strategyType)
TileCache
createLayer
in interface TileCache
public String getBaseDirectory()
public String getConfigurationDirectory()
TileCache
getConfigurationDirectory
in interface TileCache
public void removeLayer(TiledLayer layer)
TileCache
removeLayer
in interface TileCache