public class FalconViewSpatialDb extends SpatialDbContentSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DRW |
static java.lang.String |
LPT |
static java.lang.String |
MIME_TYPE |
ATAK_ACTION_HANDLE_DATA, ATAK_GROUP_NAME_EXTRA, contentResolver, database, groupName, notifyUserAfterImport, PROCESS_ACCEPT, PROCESS_RECURSE, PROCESS_REJECT, type
Constructor and Description |
---|
FalconViewSpatialDb(DataSourceFeatureDataStore database,
java.lang.String ext) |
Modifier and Type | Method and Description |
---|---|
DatabaseIface |
createDatabase(java.io.File file) |
java.lang.String |
getContentType()
Returns the cotent type supported by this importer.
|
java.lang.String |
getFileDirectoryName()
Returns the principal directory containing the content (e.g.
|
java.lang.String |
getFileMimeType()
Returns the MIME type associated with the content.
|
int |
getIconId()
Returns the Resource ID of the icon drawable (used in notifications)
|
java.lang.String |
getIconPath()
Returns the path to an icon appropriate for the content.
|
protected java.lang.String |
getProviderHint(java.io.File file)
Processes the specified file.
|
int |
processAccept(java.io.File file,
int depth)
Returns a flag instructing the process loop how to handle the file.
|
checkValidEntry, createOverlay, deleteAll, deleteData, dispose, getContentResolver, getDatabase, getGroupName, getNotificationId, getSupportedMIMETypes, getType, importData, importData, makeMapGroup, notifyUserOfError, notifyUserOfError, notifyUserOfError, notifyUserOfError, processFile, setContentResolver
public static final java.lang.String LPT
public static final java.lang.String DRW
public static final java.lang.String MIME_TYPE
public FalconViewSpatialDb(DataSourceFeatureDataStore database, java.lang.String ext)
public java.lang.String getFileDirectoryName()
SpatialDbContentSource
getFileDirectoryName
in class SpatialDbContentSource
public java.lang.String getFileMimeType()
SpatialDbContentSource
getFileMimeType
in class SpatialDbContentSource
public java.lang.String getIconPath()
SpatialDbContentSource
getIconPath
in class SpatialDbContentSource
null
to indicate
no icon.public int getIconId()
SpatialDbContentSource
getIconId
in class SpatialDbContentSource
protected java.lang.String getProviderHint(java.io.File file)
SpatialDbContentSource
getProviderHint
in class SpatialDbContentSource
file
- The file to be processed.public java.lang.String getContentType()
Importer
public int processAccept(java.io.File file, int depth)
SpatialDbContentSource
processAccept
in class SpatialDbContentSource
file
- The file to be processeddepth
- The current recursion depthSpatialDbContentSource.PROCESS_ACCEPT
, SpatialDbContentSource.PROCESS_RECURSE
or
SpatialDbContentSource.PROCESS_REJECT
.public DatabaseIface createDatabase(java.io.File file)