Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE |
static java.lang.String |
MIME_TYPE |
Constructor and Description |
---|
GeoPackageImporter(MapView view,
java.lang.String layerName,
java.lang.String iconURI) |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteData(android.net.Uri uri,
java.lang.String mime)
The method used to remove the imported data
|
void |
dispose() |
java.lang.String |
getContentType()
Returns the cotent type supported by this importer.
|
static ImportResolver |
getImportResolver() |
java.util.Set<java.lang.String> |
getSupportedMIMETypes()
Returns the set of mime types supported by this importer.
|
CommsMapComponent.ImportResult |
importData(java.io.InputStream source,
java.lang.String mime,
android.os.Bundle b)
The method used to import the data
|
CommsMapComponent.ImportResult |
importData(android.net.Uri uri,
java.lang.String mime,
android.os.Bundle bundle)
The method used to import the data
|
void |
loadImports() |
void |
loadOverlays(java.io.File[] overlayDirs) |
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String MIME_TYPE
public GeoPackageImporter(MapView view, java.lang.String layerName, java.lang.String iconURI)
public void dispose()
public static ImportResolver getImportResolver()
public void loadImports()
public void loadOverlays(java.io.File[] overlayDirs)
public java.lang.String getContentType()
Importer
getContentType
in interface Importer
public java.util.Set<java.lang.String> getSupportedMIMETypes()
Importer
getSupportedMIMETypes
in interface Importer
public CommsMapComponent.ImportResult importData(java.io.InputStream source, java.lang.String mime, android.os.Bundle b) throws java.io.IOException
Importer
importData
in interface Importer
source
- the input stream to use when importingmime
- the mime type for the input streamb
- the bundle that would have additional information concerning
the importjava.io.IOException
- if there is an error during importpublic CommsMapComponent.ImportResult importData(android.net.Uri uri, java.lang.String mime, android.os.Bundle bundle) throws java.io.IOException
Importer
importData
in interface Importer
uri
- the uri to use when importingmime
- the mime type for the input streambundle
- the bundle that would have additional information concerning
the importjava.io.IOException
- if there is an error during importpublic boolean deleteData(android.net.Uri uri, java.lang.String mime)
Importer
deleteData
in interface Importer
uri
- the input stream to use when importingmime
- the mime type for the input stream