
public class DatabaseFileArchive extends Object implements IArchiveFile
SqlTileWriter| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_KEY |
static String |
COLUMN_PROVIDER |
static String |
COLUMN_TILE |
static String |
TABLE |
(package private) static String[] |
tile_column |
| Constructor and Description |
|---|
DatabaseFileArchive() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the archive file and releases resources.
|
static DatabaseFileArchive |
getDatabaseFileArchive(File pFile) |
byte[] |
getImage(ITileSource pTileSource,
long pMapTileIndex) |
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
public static final String COLUMN_PROVIDER
public static final String COLUMN_TILE
public static final String COLUMN_KEY
static final String[] tile_column
public static DatabaseFileArchive getDatabaseFileArchive(File pFile) throws SQLiteException
SQLiteExceptionpublic void setIgnoreTileSource(boolean pIgnoreTileSource)
setIgnoreTileSource in interface IArchiveFilepublic Set<String> getTileSources()
IArchiveFilegetTileSources in interface IArchiveFilepublic void init(File pFile) throws Exception
IArchiveFileinit in interface IArchiveFileExceptionpublic byte[] getImage(ITileSource pTileSource, long pMapTileIndex)
public InputStream getInputStream(ITileSource pTileSource, long pMapTileIndex)
IArchiveFileAlso keep in mind that the tile source has an explicit tile size in pixels, and tile source name.
getInputStream in interface IArchiveFileTileSourceFactorypublic void close()
IArchiveFileclose in interface IArchiveFile