Class ZipDexContainer

    • Constructor Detail

      • ZipDexContainer

        public ZipDexContainer​(@Nonnull
                               java.io.File zipFilePath,
                               @Nullable
                               Opcodes opcodes)
        Constructs a new ZipDexContainer for the given zip file
        Parameters:
        zipFilePath - The path to the zip file
    • Method Detail

      • getDexEntryNames

        @Nonnull
        public java.util.List<java.lang.String> getDexEntryNames()
                                                          throws java.io.IOException
        Gets a list of the names of dex files in this zip file.
        Specified by:
        getDexEntryNames in interface MultiDexContainer<DexBackedDexFile>
        Returns:
        A list of the names of dex files in this zip file
        Throws:
        java.io.IOException
      • isZipFile

        public boolean isZipFile()
      • isDex

        protected boolean isDex​(@Nonnull
                                java.util.zip.ZipFile zipFile,
                                @Nonnull
                                java.util.zip.ZipEntry zipEntry)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getZipFile

        protected java.util.zip.ZipFile getZipFile()
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • loadEntry

        @Nonnull
        protected MultiDexContainer.DexEntry loadEntry​(@Nonnull
                                                       java.util.zip.ZipFile zipFile,
                                                       @Nonnull
                                                       java.util.zip.ZipEntry zipEntry)
                                                throws java.io.IOException
        Throws:
        java.io.IOException