Package com.android.builder.dexing
Class DexArchiveEntry
java.lang.Object
com.android.builder.dexing.DexArchiveEntry
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 Summary
ConstructorsConstructorDescriptionDexArchiveEntry(byte[] dexFileContent, String relativePathInArchive, DexArchive dexArchive) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns content of this DEX file.Returns a path relative to the root path of the dex archive containing it.static StringwithClassExtension(String dexEntryPath) Takes the specified .dex file, and changes its extension to .class.
-
Constructor Details
-
DexArchiveEntry
public DexArchiveEntry(@NonNull byte[] dexFileContent, @NonNull String relativePathInArchive, @NonNull DexArchive dexArchive)
-
-
Method Details
-
withClassExtension
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
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
-