public class ArchiveFileFactory extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static Map<String,Class<? extends IArchiveFile>> |
extensionMap |
Constructor and Description |
---|
ArchiveFileFactory() |
Modifier and Type | Method and Description |
---|---|
static IArchiveFile |
getArchiveFile(File pFile)
Return an implementation of
IArchiveFile for the specified file. |
static Set<String> |
getRegisteredExtensions() |
static boolean |
isFileExtensionRegistered(String extension)
Returns true if and only if the extension (minus the ".") is registered, meaning that osmdroid
has a driver to read map tiles/data from that source.
|
static void |
registerArchiveFileProvider(Class<? extends IArchiveFile> provider,
String fileExtension)
Registers a custom archive file provider
|
static Map<String,Class<? extends IArchiveFile>> extensionMap
public static boolean isFileExtensionRegistered(String extension)
extension
- the file extension in question, minus the "."public static void registerArchiveFileProvider(Class<? extends IArchiveFile> provider, String fileExtension)
provider
- fileExtension
- without the dotpublic static IArchiveFile getArchiveFile(File pFile)
IArchiveFile
for the specified file.