
public class TileDownloader extends Object
| Constructor and Description |
|---|
TileDownloader() |
| Modifier and Type | Method and Description |
|---|---|
long |
computeExpirationTime(String pHttpExpiresHeader,
String pHttpCacheControlHeader,
long pNow) |
Drawable |
downloadTile(long pMapTileIndex,
IFilesystemCache pFilesystemCache,
OnlineTileSourceBase pTileSource) |
Drawable |
downloadTile(long pMapTileIndex,
int redirectCount,
String targetUrl,
IFilesystemCache pFilesystemCache,
OnlineTileSourceBase pTileSource)
downloads a tile and follows http redirects
Code used to be in MapTileDownloader.TileLoader.downloadTile
|
Long |
getHttpCacheControlDuration(String pHttpCacheControlHeader) |
Long |
getHttpExpiresTime(String pHttpExpiresHeader) |
public Drawable downloadTile(long pMapTileIndex, IFilesystemCache pFilesystemCache, OnlineTileSourceBase pTileSource) throws CantContinueException
CantContinueExceptionpublic Drawable downloadTile(long pMapTileIndex, int redirectCount, String targetUrl, IFilesystemCache pFilesystemCache, OnlineTileSourceBase pTileSource) throws CantContinueException
CantContinueExceptionpublic Long getHttpExpiresTime(String pHttpExpiresHeader)
public Long getHttpCacheControlDuration(String pHttpCacheControlHeader)