Package org.jf.dexlib2.dexbacked
Class OatFile
java.lang.Object
org.jf.dexlib2.dexbacked.DexBuffer
org.jf.dexlib2.dexbacked.OatFile
- All Implemented Interfaces:
MultiDexContainer<DexBackedDexFile>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic classstatic classclassprivate classclassprivate classprivate classprivate classprivate classprivate class(package private) classstatic interfaceNested classes/interfaces inherited from interface org.jf.dexlib2.iface.MultiDexContainer
MultiDexContainer.DexEntry<T extends DexFile> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]private final booleanprivate static final intprivate static final intprivate static final intprivate static final byte[]private final OatFile.OatHeaderprivate final Opcodesstatic final intstatic final intstatic final intprivate final OatFile.VdexProviderFields inherited from class org.jf.dexlib2.dexbacked.DexBuffer
baseOffset, buf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OatFilestatic OatFilefromInputStream(InputStream is, OatFile.VdexProvider vdexProvider) Gets the dex entry with the given nameintprivate OatFile.StringTableprivate List<OatFile.SectionHeader> private OatFile.SymbolTableintprivate static voidverifyMagic(byte[] buf) Methods inherited from class org.jf.dexlib2.dexbacked.DexBuffer
getBaseOffset, getBuf, readByte, readByteRange, readerAt, readInt, readLong, readLongAsSmallUint, readOptionalUint, readShort, readSmallUint, readUbyte, readUshort
-
Field Details
-
ELF_MAGIC
private static final byte[] ELF_MAGIC -
OAT_MAGIC
private static final byte[] OAT_MAGIC -
MIN_ELF_HEADER_SIZE
private static final int MIN_ELF_HEADER_SIZE- See Also:
-
MIN_OAT_VERSION
private static final int MIN_OAT_VERSION- See Also:
-
MAX_OAT_VERSION
private static final int MAX_OAT_VERSION- See Also:
-
UNSUPPORTED
public static final int UNSUPPORTED- See Also:
-
SUPPORTED
public static final int SUPPORTED- See Also:
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
is64bit
private final boolean is64bit -
oatHeader
-
opcodes
-
vdexProvider
-
-
Constructor Details
-
OatFile
public OatFile(@Nonnull byte[] buf) -
OatFile
-
-
Method Details
-
verifyMagic
private static void verifyMagic(byte[] buf) -
fromInputStream
- Throws:
IOException
-
fromInputStream
public static OatFile fromInputStream(@Nonnull InputStream is, @Nullable OatFile.VdexProvider vdexProvider) throws IOException - Throws:
IOException
-
getOatVersion
public int getOatVersion() -
isSupportedVersion
public int isSupportedVersion() -
getBootClassPath
-
getDexFiles
-
getDexEntryNames
- Specified by:
getDexEntryNamesin interfaceMultiDexContainer<DexBackedDexFile>- Returns:
- A list of the names of dex entries in this container
- Throws:
IOException
-
getEntry
Description copied from interface:MultiDexContainerGets the dex entry with the given name- Specified by:
getEntryin interfaceMultiDexContainer<DexBackedDexFile>- Parameters:
entryName- The name of the entry- Returns:
- A DexFile, or null if no entry with that name is found
- Throws:
IOException
-
getSections
-
getSymbolTable
-
getSectionNameStringTable
-