public class ZipDexContainer extends java.lang.Object implements MultiDexContainer<ZipDexContainer.ZipDexFile>
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipDexContainer.NotAZipFileException |
class |
ZipDexContainer.ZipDexFile |
MultiDexContainer.MultiDexFile| 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.
|
ZipDexContainer.ZipDexFile |
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 ZipDexContainer.ZipDexFile |
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<ZipDexContainer.ZipDexFile>java.io.IOException@Nullable public ZipDexContainer.ZipDexFile getEntry(@Nonnull java.lang.String entryName) throws java.io.IOException
getEntry in interface MultiDexContainer<ZipDexContainer.ZipDexFile>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 ZipDexContainer.ZipDexFile loadEntry(@Nonnull java.util.zip.ZipFile zipFile, @Nonnull java.util.zip.ZipEntry zipEntry) throws java.io.IOException
java.io.IOException