FalconViewSpatialDb
@Deprecated public abstract class FileDatabase extends CatalogDatabase implements Importer
Modifier and Type | Field and Description |
---|---|
protected FileContentResolver |
contentResolver
Deprecated.
|
protected android.content.Context |
context
Deprecated.
|
protected static java.io.File |
DATABASE_FILE
Deprecated.
|
static int |
FILE_ICON_ID
Deprecated.
|
protected MapOverlay |
overlay
Deprecated.
|
protected android.content.SharedPreferences |
prefs
Deprecated.
|
protected MapGroup |
rootGroup
Deprecated.
|
protected MapView |
view
Deprecated.
|
Constructor and Description |
---|
FileDatabase(java.io.File file,
android.content.Context context,
MapView view)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(java.io.File file)
Deprecated.
|
protected java.util.Set<java.io.File> |
addExistingFilesToDb()
Deprecated.
|
protected java.util.List<java.io.File> |
addExistingFilesToDbInDir(java.io.File fileDir)
Deprecated.
|
protected void |
addMapItem(MapItem mapitem,
MapGroup fileGrp)
Deprecated.
|
protected void |
addToDbFromFile(java.io.File file)
Deprecated.
|
protected boolean |
checkCatalogEntryExists(java.io.File derivedFrom)
Deprecated.
|
void |
close()
Deprecated.
|
protected void |
createMapItem(FeatureDataSource.FeatureDefinition feature,
MapGroup fileGrp)
Deprecated.
|
protected void |
createRootGroup()
Deprecated.
Turn this section into a MapItemsDatabase?
|
boolean |
deleteData(android.net.Uri uri,
java.lang.String mime)
Deprecated.
The method used to remove the imported data
|
protected void |
deleteFile(java.io.File file,
boolean replacing)
Deprecated.
|
byte[] |
getAppData(java.io.File derivedFrom)
Deprecated.
|
int |
getAppVersion()
Deprecated.
|
protected static java.util.Set<java.io.File> |
getATAKMountPoints()
Deprecated.
|
abstract java.io.File |
getFileDirectory()
Deprecated.
|
protected abstract java.lang.String |
getFileMimeType()
Deprecated.
|
int |
getIconId()
Deprecated.
|
protected abstract java.lang.String |
getIconPath()
Deprecated.
|
protected int |
getIdFromFile(java.lang.String path)
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
MapGroup |
getRootGroup()
Deprecated.
|
java.util.Set<java.lang.String> |
getSupportedMIMETypes()
Deprecated.
Returns the set of mime types supported by this importer.
|
CommsMapComponent.ImportResult |
importData(java.io.InputStream source,
java.lang.String mime,
android.os.Bundle bundle)
Deprecated.
The method used to import the data
|
CommsMapComponent.ImportResult |
importData(android.net.Uri uri,
java.lang.String mime,
android.os.Bundle b)
Deprecated.
The method used to import the data
|
boolean |
isValidApp(java.io.File f,
int appVersion,
byte[] appData)
Deprecated.
|
boolean |
processFile(java.io.File f)
Deprecated.
|
protected abstract void |
processFile(java.io.File file,
MapGroup fileGrp)
Deprecated.
|
protected static java.io.File |
replaceRootDir(java.io.File fileDir,
java.io.File externalStorageDir)
Deprecated.
|
void |
validateCatalog()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentType
public static final int FILE_ICON_ID
protected static final java.io.File DATABASE_FILE
protected final android.content.Context context
protected final MapView view
protected final android.content.SharedPreferences prefs
protected final FileContentResolver contentResolver
protected MapGroup rootGroup
protected MapOverlay overlay
public FileDatabase(java.io.File file, android.content.Context context, MapView view)
public void close()
public boolean processFile(java.io.File f)
public abstract boolean accept(java.io.File file)
public abstract java.io.File getFileDirectory()
protected abstract java.lang.String getFileMimeType()
protected abstract java.lang.String getIconPath()
protected abstract void processFile(java.io.File file, MapGroup fileGrp)
public final MapGroup getRootGroup()
public final int getIconId()
protected final void addToDbFromFile(java.io.File file)
protected final int getIdFromFile(java.lang.String path)
protected final boolean checkCatalogEntryExists(java.io.File derivedFrom)
public final void validateCatalog()
public final java.lang.String getName()
public final int getAppVersion()
public final byte[] getAppData(java.io.File derivedFrom)
public final boolean isValidApp(java.io.File f, int appVersion, byte[] appData)
protected final java.util.Set<java.io.File> addExistingFilesToDb()
protected static java.io.File replaceRootDir(java.io.File fileDir, java.io.File externalStorageDir)
protected static java.util.Set<java.io.File> getATAKMountPoints()
protected final java.util.List<java.io.File> addExistingFilesToDbInDir(java.io.File fileDir)
protected final void createRootGroup()
protected final void createMapItem(FeatureDataSource.FeatureDefinition feature, MapGroup fileGrp)
public final java.util.Set<java.lang.String> getSupportedMIMETypes()
Importer
getSupportedMIMETypes
in interface Importer
public final CommsMapComponent.ImportResult importData(java.io.InputStream source, java.lang.String mime, android.os.Bundle bundle)
Importer
importData
in interface Importer
source
- the input stream to use when importingmime
- the mime type for the input streambundle
- the bundle that would have additional information concerning
the importpublic final CommsMapComponent.ImportResult importData(android.net.Uri uri, java.lang.String mime, android.os.Bundle b)
Importer
importData
in interface Importer
uri
- the uri to use when importingmime
- the mime type for the input streamb
- the bundle that would have additional information concerning
the importpublic final 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 streamprotected void deleteFile(java.io.File file, boolean replacing)