
public class MBTilesFileArchive extends Object implements IArchiveFile
| Modifier and Type | Field and Description |
|---|---|
static String |
COL_TILES_TILE_COLUMN |
static String |
COL_TILES_TILE_DATA |
static String |
COL_TILES_TILE_ROW |
static String |
COL_TILES_ZOOM_LEVEL |
static String |
TABLE_TILES |
| Constructor and Description |
|---|
MBTilesFileArchive() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the archive file and releases resources.
|
static MBTilesFileArchive |
getDatabaseFileArchive(File pFile) |
InputStream |
getInputStream(ITileSource pTileSource,
long pMapTileIndex)
Get the input stream for the requested tile and tile source.
|
Set<String> |
getTileSources()
returns a list of tile source names that are available in the archive, if supported.
|
void |
init(File pFile)
initialize the file archive, such as performing initial scans, queries, opening a database, etc
|
void |
setIgnoreTileSource(boolean pIgnoreTileSource) |
String |
toString() |
public static final String TABLE_TILES
public static final String COL_TILES_ZOOM_LEVEL
public static final String COL_TILES_TILE_COLUMN
public static final String COL_TILES_TILE_ROW
public static final String COL_TILES_TILE_DATA
public static MBTilesFileArchive getDatabaseFileArchive(File pFile) throws SQLiteException
SQLiteExceptionpublic void init(File pFile) throws Exception
IArchiveFileinit in interface IArchiveFileExceptionpublic InputStream getInputStream(ITileSource pTileSource, long pMapTileIndex)
IArchiveFilegetInputStream in interface IArchiveFileTileSourceFactorypublic Set<String> getTileSources()
IArchiveFilegetTileSources in interface IArchiveFilepublic void setIgnoreTileSource(boolean pIgnoreTileSource)
setIgnoreTileSource in interface IArchiveFilepublic void close()
IArchiveFileclose in interface IArchiveFile