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>
public class OatFile extends DexBuffer implements MultiDexContainer<DexBackedDexFile>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOatFile.InvalidOatFileExceptionstatic classOatFile.NotAnOatFileExceptionclassOatFile.OatCDexFileclassOatFile.OatDexFilestatic interfaceOatFile.VdexProvider-
Nested classes/interfaces inherited from interface org.jf.dexlib2.iface.MultiDexContainer
MultiDexContainer.DexEntry<T extends DexFile>
-
-
Field Summary
Fields Modifier and Type Field Description static intSUPPORTEDstatic intUNKNOWNstatic intUNSUPPORTED
-
Constructor Summary
Constructors Constructor Description OatFile(byte[] buf)OatFile(byte[] buf, OatFile.VdexProvider vdexProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OatFilefromInputStream(java.io.InputStream is)static OatFilefromInputStream(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.OatDexEntrygetEntry(java.lang.String entryName)Gets the dex entry with the given nameintgetOatVersion()intisSupportedVersion()-
Methods inherited from class org.jf.dexlib2.dexbacked.DexBuffer
getBaseOffset, getBuf, readByte, readByteRange, readerAt, readInt, readLong, readLongAsSmallUint, readOptionalUint, readShort, readSmallUint, readUbyte, readUshort
-
-
-
-
Field Detail
-
UNSUPPORTED
public static final int UNSUPPORTED
- See Also:
- Constant Field Values
-
SUPPORTED
public static final int SUPPORTED
- See Also:
- Constant Field Values
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OatFile
public OatFile(@Nonnull byte[] buf)
-
OatFile
public OatFile(@Nonnull byte[] buf, @Nullable OatFile.VdexProvider vdexProvider)
-
-
Method Detail
-
fromInputStream
public static OatFile fromInputStream(@Nonnull java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
fromInputStream
public static OatFile fromInputStream(@Nonnull java.io.InputStream is, @Nullable OatFile.VdexProvider vdexProvider) throws java.io.IOException
- Throws:
java.io.IOException
-
getOatVersion
public int getOatVersion()
-
isSupportedVersion
public int isSupportedVersion()
-
getBootClassPath
@Nonnull public java.util.List<java.lang.String> getBootClassPath()
-
getDexFiles
@Nonnull public java.util.List<DexBackedDexFile> getDexFiles()
-
getDexEntryNames
@Nonnull public java.util.List<java.lang.String> getDexEntryNames() throws java.io.IOException- Specified by:
getDexEntryNamesin interfaceMultiDexContainer<DexBackedDexFile>- Returns:
- A list of the names of dex entries in this container
- Throws:
java.io.IOException
-
getEntry
@Nullable public org.jf.dexlib2.dexbacked.OatFile.OatDexEntry getEntry(@Nonnull java.lang.String entryName) throws java.io.IOExceptionDescription 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:
java.io.IOException
-
-