public abstract class AbstractImporter extends java.lang.Object implements Importer
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
contentType |
Constructor and Description |
---|
AbstractImporter(java.lang.String 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.lang.String |
getContentType()
Returns the cotent type supported by this importer.
|
static CommsMapComponent.ImportResult |
importUriAsStream(Importer importer,
android.net.Uri uri,
java.lang.String mime,
android.os.Bundle bundle) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedMIMETypes, importData, importData
public final java.lang.String getContentType()
Importer
getContentType
in interface Importer
public static CommsMapComponent.ImportResult importUriAsStream(Importer importer, android.net.Uri uri, java.lang.String mime, android.os.Bundle bundle) throws java.io.IOException
java.io.IOException
public boolean deleteData(android.net.Uri uri, java.lang.String mime) throws java.io.IOException
Importer
deleteData
in interface Importer
uri
- the input stream to use when importingmime
- the mime type for the input streamjava.io.IOException
- if there is an error during the deletion