Package org.jf.dexlib2.dexbacked
Class ZipDexContainer
java.lang.Object
org.jf.dexlib2.dexbacked.ZipDexContainer
- All Implemented Interfaces:
MultiDexContainer<DexBackedDexFile>
Represents a zip file that contains dex files (i.e. an apk or jar file)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.jf.dexlib2.iface.MultiDexContainer
MultiDexContainer.DexEntry<T extends DexFile> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionZipDexContainer(File zipFilePath, Opcodes opcodes) Constructs a new ZipDexContainer for the given zip file -
Method Summary
Modifier and TypeMethodDescriptionGets a list of the names of dex files in this zip file.Loads a dex file from a specific named entry.protected ZipFileprotected booleanbooleanprotected MultiDexContainer.DexEntry
-
Field Details
-
zipFilePath
-
opcodes
-
-
Constructor Details
-
ZipDexContainer
Constructs a new ZipDexContainer for the given zip file- Parameters:
zipFilePath- The path to the zip file
-
-
Method Details
-
getDexEntryNames
Gets a list of the names of dex files in this zip file.- Specified by:
getDexEntryNamesin interfaceMultiDexContainer<DexBackedDexFile>- Returns:
- A list of the names of dex files in this zip file
- Throws:
IOException
-
getEntry
@Nullable public MultiDexContainer.DexEntry<DexBackedDexFile> getEntry(@Nonnull String entryName) throws IOException Loads a dex file from a specific named entry.- Specified by:
getEntryin interfaceMultiDexContainer<DexBackedDexFile>- Parameters:
entryName- The name of the entry- Returns:
- A ZipDexFile, or null if there is no entry with the given name
- Throws:
DexBackedDexFile.NotADexFile- If the entry isn't a dex fileIOException
-
isZipFile
public boolean isZipFile() -
isDex
- Throws:
IOException
-
getZipFile
- Throws:
IOException
-
loadEntry
@Nonnull protected MultiDexContainer.DexEntry loadEntry(@Nonnull ZipFile zipFile, @Nonnull ZipEntry zipEntry) throws IOException - Throws:
IOException
-