-
- All Implemented Interfaces:
-
org.osmdroid.tileprovider.modules.IArchiveFile
public class ZipFileArchive implements IArchiveFile
-
-
Constructor Summary
Constructors Constructor Description ZipFileArchive()
-
Method Summary
Modifier and Type Method Description static ZipFileArchivegetZipFileArchive(File pFile)voidsetIgnoreTileSource(boolean pIgnoreTileSource)voidinit(File pFile)initialize the file archive, such as performing initial scans, queries, opening a database, etc InputStreamgetInputStream(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. voidclose()Closes the archive file and releases resources. StringtoString()-
-
Method Detail
-
getZipFileArchive
static ZipFileArchive getZipFileArchive(File pFile)
-
setIgnoreTileSource
void setIgnoreTileSource(boolean pIgnoreTileSource)
-
init
void init(File pFile)
initialize the file archive, such as performing initial scans, queries, opening a database, etc
-
getInputStream
InputStream getInputStream(ITileSource pTileSource, long pMapTileIndex)
Get the input stream for the requested tile and tile source.
Also keep in mind that the tile source has an explicit tile size in pixels, and tile source name.
-
getTileSources
Set<String> getTileSources()
returns a list of tile source names that are available in the archive, if supported. Ifnot supported, return an empty set
-
close
void close()
Closes the archive file and releases resources.
-
-
-
-