public class ZipDexContainer extends java.lang.Object implements MultiDexContainer<DexBackedDexFile>
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipDexContainer.NotAZipFileException |
MultiDexContainer.DexEntry<T extends DexFile>| Constructor and Description |
|---|
ZipDexContainer(java.io.File zipFilePath,
Opcodes opcodes)
Constructs a new ZipDexContainer for the given zip file
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getDexEntryNames()
Gets a list of the names of dex files in this zip file.
|
MultiDexContainer.DexEntry<DexBackedDexFile> |
getEntry(java.lang.String entryName)
Loads a dex file from a specific named entry.
|
protected java.util.zip.ZipFile |
getZipFile() |
protected boolean |
isDex(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry zipEntry) |
boolean |
isZipFile() |
protected MultiDexContainer.DexEntry |
loadEntry(java.util.zip.ZipFile zipFile,
java.util.zip.ZipEntry zipEntry) |
public ZipDexContainer(@Nonnull
java.io.File zipFilePath,
@Nullable
Opcodes opcodes)
zipFilePath - The path to the zip file@Nonnull
public java.util.List<java.lang.String> getDexEntryNames()
throws java.io.IOException
getDexEntryNames in interface MultiDexContainer<DexBackedDexFile>java.io.IOException@Nullable public MultiDexContainer.DexEntry<DexBackedDexFile> getEntry(@Nonnull java.lang.String entryName) throws java.io.IOException
getEntry in interface MultiDexContainer<DexBackedDexFile>entryName - The name of the entryDexBackedDexFile.NotADexFile - If the entry isn't a dex filejava.io.IOExceptionpublic boolean isZipFile()
protected boolean isDex(@Nonnull
java.util.zip.ZipFile zipFile,
@Nonnull
java.util.zip.ZipEntry zipEntry)
throws java.io.IOException
java.io.IOExceptionprotected java.util.zip.ZipFile getZipFile()
throws java.io.IOException
java.io.IOException@Nonnull protected MultiDexContainer.DexEntry loadEntry(@Nonnull java.util.zip.ZipFile zipFile, @Nonnull java.util.zip.ZipEntry zipEntry) throws java.io.IOException
java.io.IOException