public class OatFile extends DexBuffer implements MultiDexContainer<DexBackedDexFile>
| Modifier and Type | Class and Description |
|---|---|
static class |
OatFile.InvalidOatFileException |
static class |
OatFile.NotAnOatFileException |
class |
OatFile.OatCDexFile |
class |
OatFile.OatDexFile |
static interface |
OatFile.VdexProvider |
MultiDexContainer.DexEntry<T extends DexFile>| Modifier and Type | Field and Description |
|---|---|
static int |
SUPPORTED |
static int |
UNKNOWN |
static int |
UNSUPPORTED |
| Constructor and Description |
|---|
OatFile(byte[] buf) |
OatFile(byte[] buf,
OatFile.VdexProvider vdexProvider) |
| Modifier and Type | Method and Description |
|---|---|
static OatFile |
fromInputStream(java.io.InputStream is) |
static OatFile |
fromInputStream(java.io.InputStream is,
OatFile.VdexProvider vdexProvider) |
java.util.List<java.lang.String> |
getBootClassPath() |
java.util.List<java.lang.String> |
getDexEntryNames() |
java.util.List<DexBackedDexFile> |
getDexFiles() |
org.jf.dexlib2.dexbacked.OatFile.OatDexEntry |
getEntry(java.lang.String entryName)
Gets the dex entry with the given name
|
int |
getOatVersion() |
int |
isSupportedVersion() |
getBaseOffset, getBuf, readByte, readByteRange, readerAt, readInt, readLong, readLongAsSmallUint, readOptionalUint, readShort, readSmallUint, readUbyte, readUshortpublic static final int UNSUPPORTED
public static final int SUPPORTED
public static final int UNKNOWN
public OatFile(@Nonnull
byte[] buf)
public OatFile(@Nonnull
byte[] buf,
@Nullable
OatFile.VdexProvider vdexProvider)
public static OatFile fromInputStream(@Nonnull java.io.InputStream is) throws java.io.IOException
java.io.IOExceptionpublic static OatFile fromInputStream(@Nonnull java.io.InputStream is, @Nullable OatFile.VdexProvider vdexProvider) throws java.io.IOException
java.io.IOExceptionpublic int getOatVersion()
public int isSupportedVersion()
@Nonnull public java.util.List<java.lang.String> getBootClassPath()
@Nonnull public java.util.List<DexBackedDexFile> getDexFiles()
@Nonnull
public java.util.List<java.lang.String> getDexEntryNames()
throws java.io.IOException
getDexEntryNames in interface MultiDexContainer<DexBackedDexFile>java.io.IOException@Nullable
public org.jf.dexlib2.dexbacked.OatFile.OatDexEntry getEntry(@Nonnull
java.lang.String entryName)
throws java.io.IOException
MultiDexContainergetEntry in interface MultiDexContainer<DexBackedDexFile>entryName - The name of the entryjava.io.IOException