public class UrlTileDataSource extends java.lang.Object implements ITileDataSource
| Modifier and Type | Field and Description |
|---|---|
protected HttpEngine |
mConn |
protected ITileDecoder |
mTileDecoder |
protected UrlTileSource |
mTileSource |
protected boolean |
mUseCache |
| Constructor and Description |
|---|
UrlTileDataSource(UrlTileSource tileSource,
ITileDecoder tileDecoder,
HttpEngine conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Implementations should cancel their IO work and return
|
void |
dispose()
Implementations should cancel and release all resources
|
void |
query(MapTile tile,
ITileDataSink sink) |
protected final HttpEngine mConn
protected final ITileDecoder mTileDecoder
protected final UrlTileSource mTileSource
protected final boolean mUseCache
public UrlTileDataSource(UrlTileSource tileSource, ITileDecoder tileDecoder, HttpEngine conn)
public void query(MapTile tile, ITileDataSink sink)
query in interface ITileDataSourcetile - the tile to load.sink - the callback to handle the extracted map elements.public void dispose()
ITileDataSourcedispose in interface ITileDataSourcepublic void cancel()
ITileDataSourcecancel in interface ITileDataSource