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, waitgetSupportedMIMETypes, importData, importDatapublic final java.lang.String getContentType()
ImportergetContentType in interface Importerpublic static CommsMapComponent.ImportResult importUriAsStream(Importer importer, android.net.Uri uri, java.lang.String mime, android.os.Bundle bundle) throws java.io.IOException
java.io.IOExceptionpublic boolean deleteData(android.net.Uri uri,
java.lang.String mime)
throws java.io.IOException
ImporterdeleteData in interface Importeruri - the input stream to use when importingmime - the mime type for the input streamjava.io.IOException - if there is an error during the deletion