public class PlainZipExtractor extends java.lang.Object implements IMissionPackageExtractor
Modifier and Type | Class and Description |
---|---|
protected static class |
PlainZipExtractor.ZipEntryAction
Specifies how to handle a given Zip Entry
|
Constructor and Description |
---|
PlainZipExtractor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addContent(MissionPackageManifest manifest,
MissionPackageContent content) |
MissionPackageManifest |
extract(android.content.Context context,
java.io.File inZip,
java.io.File atakRoot,
boolean bImport)
Extract contents from the specified Zip File
|
protected PlainZipExtractor.ZipEntryAction |
getAction(java.util.zip.ZipEntry zinEntry)
Omit directories and manifests, include all others
|
MissionPackageManifest |
getManifest(java.io.File zipFile)
Extract manifest from the specified Zip File
|
public MissionPackageManifest extract(android.content.Context context, java.io.File inZip, java.io.File atakRoot, boolean bImport)
IMissionPackageExtractor
extract
in interface IMissionPackageExtractor
context
- the context for the applicationinZip
- the zip file to unzipatakRoot
- where to unzip data and filespublic MissionPackageManifest getManifest(java.io.File zipFile)
IMissionPackageExtractor
getManifest
in interface IMissionPackageExtractor
protected PlainZipExtractor.ZipEntryAction getAction(java.util.zip.ZipEntry zinEntry)
zinEntry
- protected boolean addContent(MissionPackageManifest manifest, MissionPackageContent content)