public class CotImporterManager extends AbstractCotEventImporter
crcBlacklist, supportedMimeTypes
contentType
Constructor and Description |
---|
CotImporterManager(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteData(android.net.Uri uri,
java.lang.String mime)
The method used to remove the imported data
|
static CotImporterManager |
getInstance() |
java.util.Set<java.lang.String> |
getSupportedMIMETypes()
Returns the set of mime types supported by this importer.
|
CommsMapComponent.ImportResult |
importData(CotEvent event,
android.os.Bundle extras)
Process CoT events using the registered importers
|
CommsMapComponent.ImportResult |
importData(android.net.Uri uri,
java.lang.String mime,
android.os.Bundle bundle)
The method used to import the data
|
CommsMapComponent.ImportResult |
importNonCotData(java.io.InputStream source,
java.lang.String mime) |
void |
registerImporter(CotEventImporter importer)
Register a CoT importer
Type importers with a non-type set are automatically mapped
|
void |
unregisterImporter(CotEventImporter importer)
Unregister a CoT importer
|
crcDetails, importData, importData, parseColor, parseDouble, parseInt
getContentType, importUriAsStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentType
public CotImporterManager(MapView mapView)
public static CotImporterManager getInstance()
public void registerImporter(CotEventImporter importer)
importer
- CoT importerpublic void unregisterImporter(CotEventImporter importer)
importer
- CoT importerpublic java.util.Set<java.lang.String> getSupportedMIMETypes()
Importer
getSupportedMIMETypes
in interface Importer
getSupportedMIMETypes
in class AbstractCotEventImporter
public CommsMapComponent.ImportResult importData(android.net.Uri uri, java.lang.String mime, android.os.Bundle bundle) throws java.io.IOException
Importer
importData
in interface Importer
importData
in class AbstractCotEventImporter
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
deleteData
in class AbstractImporter
uri
- the input stream to use when importingmime
- the mime type for the input streampublic CommsMapComponent.ImportResult importNonCotData(java.io.InputStream source, java.lang.String mime)
importNonCotData
in class AbstractCotEventImporter
public CommsMapComponent.ImportResult importData(CotEvent event, android.os.Bundle extras)
importData
in interface CotEventImporter
importData
in class AbstractCotEventImporter
event
- CoT eventextras
- Import extras