|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.DexFormat
public final class DexFormat
Constants that show up in and are otherwise related to .dex
files, and helper methods for same.
| Field Summary | |
|---|---|
static int |
API_CURRENT
API level to target in order to produce the most modern file format |
static int |
API_NO_EXTENDED_OPCODES
API level to target in order to suppress extended opcode usage |
static String |
DEX_IN_JAR_NAME
file name of the primary .dex file inside an
application or library .jar file |
static int |
ENDIAN_TAG
value used to indicate endianness of file contents |
static String |
MAGIC_PREFIX
common prefix for all dex file "magic numbers" |
static String |
MAGIC_SUFFIX
common suffix for all dex file "magic numbers" |
static String |
VERSION_CURRENT
dex file version number for the current format variant |
static String |
VERSION_FOR_API_13
dex file version number for API level 13 and earlier |
| Method Summary | |
|---|---|
static String |
apiToMagic(int targetApiLevel)
Returns the magic number corresponding to the given target API level. |
static int |
magicToApi(byte[] magic)
Returns the API level corresponding to the given magic number, or -1 if the given array is not a well-formed dex file
magic number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int API_CURRENT
public static final int API_NO_EXTENDED_OPCODES
public static final String DEX_IN_JAR_NAME
.dex file inside an
application or library .jar file
public static final String MAGIC_PREFIX
public static final String MAGIC_SUFFIX
public static final String VERSION_CURRENT
public static final String VERSION_FOR_API_13
public static final int ENDIAN_TAG
| Method Detail |
|---|
public static int magicToApi(byte[] magic)
-1 if the given array is not a well-formed dex file
magic number.
public static String apiToMagic(int targetApiLevel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||