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,
MapTile pTile) |
InputStream |
getInputStream(ITileSource pTileSource,
MapTile pTile)
Get the input stream for the requested tile.
|
Set<String> |
getTileSources()
returns a list of tile source names that are available in the archive, if supported
|
void |
init(File pFile) |
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
SQLiteException
public Set<String> getTileSources()
IArchiveFile
getTileSources
in interface IArchiveFile
public void init(File pFile) throws Exception
init
in interface IArchiveFile
Exception
public byte[] getImage(ITileSource pTileSource, MapTile pTile)
public InputStream getInputStream(ITileSource pTileSource, MapTile pTile)
IArchiveFile
getInputStream
in interface IArchiveFile
public void close()
IArchiveFile
close
in interface IArchiveFile