Class DexArchiveEntry

java.lang.Object
com.android.builder.dexing.DexArchiveEntry

public final class DexArchiveEntry extends Object
A single DEX file in a dex archive. It is uniquely identified with relativePathInArchive within a single DexArchive. It also contains the DEX file's content (dexFileContent).
  • Constructor Details

    • DexArchiveEntry

      public DexArchiveEntry(@NonNull byte[] dexFileContent, @NonNull String relativePathInArchive, @NonNull DexArchive dexArchive)
  • Method Details

    • withClassExtension

      @NonNull public static String withClassExtension(@NonNull String dexEntryPath)
      Takes the specified .dex file, and changes its extension to .class. It fails if invoked with a file name that does not end in .dex.
    • getDexFileContent

      @NonNull public byte[] getDexFileContent()
      Returns content of this DEX file.
    • getRelativePathInArchive

      @NonNull public String getRelativePathInArchive()
      Returns a path relative to the root path of the dex archive containing it.
      Returns:
      relative path of this entry from the root of the dex archive
    • getDexArchive

      @NonNull public DexArchive getDexArchive()