public class MissionPackageShapefileHandler extends java.lang.Object implements IMissionPackageEventHandler
| Constructor and Description |
|---|
MissionPackageShapefileHandler(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
add(android.content.Context context,
MissionPackageManifest manifest,
java.io.File file) |
static boolean |
add(android.content.Context context,
MissionPackageManifest manifest,
java.io.File file,
java.lang.String attachedUID)
Static version of member method "add" which operates on a manifest
rather than a UI/MissionPackageListGroup
|
boolean |
add(MissionPackageListGroup group,
java.io.File file)
If file is supported, add to group/manifest.
|
boolean |
extract(MissionPackageManifest manifest,
MissionPackageContent content,
ZipFile zipFile,
java.io.File atakDataDir,
byte[] buffer,
java.util.List<ImportResolver> sorters)
If content is supported, extract it from the zip
|
boolean |
remove(MissionPackageListGroup group,
MissionPackageListFileItem item)
If file is supported, remove from group/manifest.
|
public MissionPackageShapefileHandler(android.content.Context context)
public boolean add(MissionPackageListGroup group, java.io.File file)
IMissionPackageEventHandleradd in interface IMissionPackageEventHandlerpublic static boolean add(android.content.Context context,
MissionPackageManifest manifest,
java.io.File file,
java.lang.String attachedUID)
manifest - Data package manifestfile - Shapefile to send (.shp)attachedUID - Map item UID the file is attached to (null if N/A)public static boolean add(android.content.Context context,
MissionPackageManifest manifest,
java.io.File file)
public boolean remove(MissionPackageListGroup group, MissionPackageListFileItem item)
IMissionPackageEventHandlerremove in interface IMissionPackageEventHandlerpublic boolean extract(MissionPackageManifest manifest, MissionPackageContent content, ZipFile zipFile, java.io.File atakDataDir, byte[] buffer, java.util.List<ImportResolver> sorters) throws java.io.IOException
IMissionPackageEventHandlerextract in interface IMissionPackageEventHandlerjava.io.IOException