public final class ModelImporter extends AbstractImporter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE |
static java.lang.String |
URI_ALL_MODELS |
contentType| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteData(android.net.Uri uri,
java.lang.String mime)
The method used to remove the imported data
|
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 b)
The method used to import the data
|
static void |
registerMIMEType(java.lang.String type) |
static void |
unregisterMIMEType(java.lang.String type) |
getContentType, importUriAsStreampublic static final java.lang.String URI_ALL_MODELS
public static final java.lang.String CONTENT_TYPE
public static void registerMIMEType(java.lang.String type)
public static void unregisterMIMEType(java.lang.String type)
public java.util.Set<java.lang.String> getSupportedMIMETypes()
Importerpublic CommsMapComponent.ImportResult importData(java.io.InputStream source, java.lang.String mime, android.os.Bundle b) throws java.io.IOException
Importersource - 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 b) throws java.io.IOException
Importeruri - the uri 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 boolean deleteData(android.net.Uri uri,
java.lang.String mime)
throws java.io.IOException
ImporterdeleteData in interface ImporterdeleteData in class AbstractImporteruri - the input stream to use when importingmime - the mime type for the input streamjava.io.IOException - if there is an error during the deletion