Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.dex

public final Class DexFormat

extends Object
Class Inheritance

Constants that show up in and are otherwise related to .dex files, and helper methods for same.

Field Summary

Modifier and TypeField and Description
public static final int
API_CURRENT

API level to target in order to produce the most modern file format

public static final int
API_NO_EXTENDED_OPCODES

API level to target in order to suppress extended opcode usage

public static final String
DEX_IN_JAR_NAME

file name of the primary .dex file inside an application or library .jar file

public static final int
ENDIAN_TAG

value used to indicate endianness of file contents

public static final String
MAGIC_PREFIX

common prefix for all dex file "magic numbers"

public static final String
MAGIC_SUFFIX

common suffix for all dex file "magic numbers"

public static final String
VERSION_CURRENT

dex file version number for the current format variant

public static final String
VERSION_FOR_API_13

dex file version number for API level 13 and earlier

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
apiToMagic(int targetApiLevel)

Returns the magic number corresponding to the given target API level.

public 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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

API_CURRENTback to summary
public static final int API_CURRENT

API level to target in order to produce the most modern file format

API_NO_EXTENDED_OPCODESback to summary
public static final int API_NO_EXTENDED_OPCODES

API level to target in order to suppress extended opcode usage

DEX_IN_JAR_NAMEback to summary
public static final String DEX_IN_JAR_NAME

file name of the primary .dex file inside an application or library .jar file

ENDIAN_TAGback to summary
public static final int ENDIAN_TAG

value used to indicate endianness of file contents

MAGIC_PREFIXback to summary
public static final String MAGIC_PREFIX

common prefix for all dex file "magic numbers"

MAGIC_SUFFIXback to summary
public static final String MAGIC_SUFFIX

common suffix for all dex file "magic numbers"

VERSION_CURRENTback to summary
public static final String VERSION_CURRENT

dex file version number for the current format variant

VERSION_FOR_API_13back to summary
public static final String VERSION_FOR_API_13

dex file version number for API level 13 and earlier

Constructor Detail

DexFormatback to summary
private DexFormat()

Method Detail

apiToMagicback to summary
public static String apiToMagic(int targetApiLevel)

Returns the magic number corresponding to the given target API level.

magicToApiback to summary
public 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.