Class Dex2jar

java.lang.Object
com.googlecode.d2j.dex.Dex2jar

public final class Dex2jar extends Object
  • Field Details

    • random

      public static Random random
      For rather deterministic output, we use a fixed seed for random number generator. This field is freely writable by any thread. Use carefully.
  • Method Details

    • doTranslate

      public void doTranslate(Path dist)
    • doTranslate

      public void doTranslate(ByteArrayOutputStream baos)
    • doTranslate

      public void doTranslate(Path dist, ByteArrayOutputStream baos)
      Translates a dex file to a class file and writes it to the specified destination path and stream.
      Parameters:
      dist - The destination path where the translated class file should be written, or null if unwanted.
      baos - An output stream used for intermediate data storage, or null if unwanted.
    • getExceptionHandler

      public DexExceptionHandler getExceptionHandler()
    • getReader

      public com.googlecode.d2j.reader.BaseDexFileReader getReader()
    • reUseReg

      public Dex2jar reUseReg(boolean b)
    • topoLogicalSort

      public Dex2jar topoLogicalSort(boolean b)
    • noCode

      public Dex2jar noCode(boolean b)
    • optimizeSynchronized

      public Dex2jar optimizeSynchronized(boolean b)
    • printIR

      public Dex2jar printIR(boolean b)
    • reUseReg

      public Dex2jar reUseReg()
    • optimizeSynchronized

      public Dex2jar optimizeSynchronized()
    • printIR

      public Dex2jar printIR()
    • topoLogicalSort

      public Dex2jar topoLogicalSort()
    • setExceptionHandler

      public void setExceptionHandler(DexExceptionHandler exceptionHandler)
    • skipDebug

      public Dex2jar skipDebug(boolean b)
    • skipDebug

      public Dex2jar skipDebug()
    • to

      public void to(Path file) throws IOException
      Throws:
      IOException
    • withExceptionHandler

      public Dex2jar withExceptionHandler(DexExceptionHandler exceptionHandler)
    • skipExceptions

      public Dex2jar skipExceptions(boolean b)
    • dontSanitizeNames

      public Dex2jar dontSanitizeNames(boolean b)
    • computeFrames

      public Dex2jar computeFrames(boolean b)
    • setRandom

      public Dex2jar setRandom(Random random)
    • resetRandom

      public Dex2jar resetRandom()
    • from

      public static Dex2jar from(byte[] in) throws IOException
      Throws:
      IOException
    • from

      public static Dex2jar from(ByteBuffer in) throws IOException
      Throws:
      IOException
    • from

      public static Dex2jar from(com.googlecode.d2j.reader.BaseDexFileReader reader)
    • from

      public static Dex2jar from(File in) throws IOException
      Throws:
      IOException
    • from

      public static Dex2jar from(InputStream in) throws IOException
      Throws:
      IOException
    • from

      public static Dex2jar from(String in) throws IOException
      Throws:
      IOException