Class OatFile

    • Constructor Detail

      • OatFile

        public OatFile​(@Nonnull
                       byte[] buf)
    • 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()
      • getDexEntryNames

        @Nonnull
        public java.util.List<java.lang.String> getDexEntryNames()
                                                          throws java.io.IOException
        Specified by:
        getDexEntryNames in interface MultiDexContainer<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.IOException
        Description copied from interface: MultiDexContainer
        Gets the dex entry with the given name
        Specified by:
        getEntry in interface MultiDexContainer<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