public class DexBackedDexFile extends BaseDexBuffer implements DexFile
| Modifier and Type | Class and Description |
|---|---|
static class |
DexBackedDexFile.InvalidItemIndex |
static class |
DexBackedDexFile.NotADexFile |
| Constructor and Description |
|---|
DexBackedDexFile(Opcodes opcodes,
BaseDexBuffer buf) |
DexBackedDexFile(Opcodes opcodes,
byte[] buf) |
DexBackedDexFile(Opcodes opcodes,
byte[] buf,
int offset) |
| Modifier and Type | Method and Description |
|---|---|
static DexBackedDexFile |
fromInputStream(Opcodes opcodes,
java.io.InputStream is) |
int |
getClassCount() |
int |
getClassDefItemOffset(int classIndex) |
java.util.Set<? extends DexBackedClassDef> |
getClasses()
Get a set of the classes defined in this dex file.
|
int |
getFieldCount() |
int |
getFieldIdItemOffset(int fieldIndex) |
int |
getMethodCount() |
int |
getMethodIdItemOffset(int methodIndex) |
Opcodes |
getOpcodes()
Get the Opcodes associated with this dex file
|
java.lang.String |
getOptionalString(int stringIndex) |
java.lang.String |
getOptionalType(int typeIndex) |
int |
getProtoCount() |
int |
getProtoIdItemOffset(int protoIndex) |
java.lang.String |
getString(int stringIndex) |
int |
getStringCount() |
int |
getStringIdItemOffset(int stringIndex) |
java.lang.String |
getType(int typeIndex) |
int |
getTypeCount() |
int |
getTypeIdItemOffset(int typeIndex) |
boolean |
hasOdexOpcodes() |
boolean |
isOdexFile() |
DexReader |
readerAt(int offset) |
getBaseOffset, getBuf, readByte, readInt, readLong, readLongAsSmallUint, readOptionalUint, readShort, readSmallUint, readUbyte, readUshortpublic DexBackedDexFile(@Nonnull
Opcodes opcodes,
@Nonnull
BaseDexBuffer buf)
public DexBackedDexFile(@Nonnull
Opcodes opcodes,
@Nonnull
byte[] buf,
int offset)
public DexBackedDexFile(@Nonnull
Opcodes opcodes,
@Nonnull
byte[] buf)
public static DexBackedDexFile fromInputStream(@Nonnull Opcodes opcodes, @Nonnull java.io.InputStream is) throws java.io.IOException
java.io.IOException@Nonnull public Opcodes getOpcodes()
DexFilegetOpcodes in interface DexFilepublic boolean isOdexFile()
public boolean hasOdexOpcodes()
@Nonnull public java.util.Set<? extends DexBackedClassDef> getClasses()
DexFilegetClasses in interface DexFilepublic int getStringIdItemOffset(int stringIndex)
public int getTypeIdItemOffset(int typeIndex)
public int getFieldIdItemOffset(int fieldIndex)
public int getMethodIdItemOffset(int methodIndex)
public int getProtoIdItemOffset(int protoIndex)
public int getClassDefItemOffset(int classIndex)
public int getClassCount()
public int getStringCount()
public int getTypeCount()
public int getProtoCount()
public int getFieldCount()
public int getMethodCount()
@Nonnull public java.lang.String getString(int stringIndex)
@Nullable public java.lang.String getOptionalString(int stringIndex)
@Nonnull public java.lang.String getType(int typeIndex)
@Nullable public java.lang.String getOptionalType(int typeIndex)
@Nonnull public DexReader readerAt(int offset)
readerAt in class BaseDexBuffer