Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
configDir |
protected java.lang.String |
preffixSizeFileName |
Constructor and Description |
---|
TileCacheImpl(java.lang.String baseDir) |
Modifier and Type | Method and Description |
---|---|
TiledLayer |
createLayer(TileServer provider,
java.lang.String strategyType)
Builds a new layer
|
java.lang.String |
getBaseDirectory()
Gets the base directory
|
java.lang.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(java.lang.String dir)
Updates the string with the base directory
|
void |
updateSize(long sizeBytes)
Updates the size of the tiles downloaded
|
protected java.lang.String preffixSizeFileName
protected java.lang.String configDir
public void updateBaseDirectory(java.lang.String dir)
TileCache
updateBaseDirectory
in interface TileCache
public void updateSize(long sizeBytes)
sizeBytes
- public void saveSize()
java.io.IOException
public boolean isFullDiskCache()
TileCache
isFullDiskCache
in interface TileCache
public TiledLayer createLayer(TileServer provider, java.lang.String strategyType)
TileCache
createLayer
in interface TileCache
public java.lang.String getBaseDirectory()
public java.lang.String getConfigurationDirectory()
TileCache
getConfigurationDirectory
in interface TileCache
public void removeLayer(TiledLayer layer)
TileCache
removeLayer
in interface TileCache