Class ZipUtil

java.lang.Object
com.googlecode.d2j.reader.zip.ZipUtil

public final class ZipUtil extends Object
  • Method Details

    • toByteArray

      public static byte[] toByteArray(InputStream is) throws IOException
      Throws:
      IOException
    • readDex

      public static byte[] readDex(File file) throws IOException
      read the dex file from file, if the file is a zip file, it will return the content of classes.dex in the zip file.
      Throws:
      IOException
    • readDex

      public static byte[] readDex(Path file) throws IOException
      Throws:
      IOException
    • readDex

      public static byte[] readDex(InputStream in) throws IOException
      Throws:
      IOException
    • readDex

      public static byte[] readDex(byte[] data) throws IOException
      read the dex file from byte array, if the byte array is a zip stream, it will return the content of classes.dex in the zip stream.
      Returns:
      the content of classes.dex
      Throws:
      IOException