public class ZipUtil
extends java.lang.Object
| 构造器和说明 |
|---|
ZipUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
readDex(byte[] data)
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.
|
static byte[] |
readDex(java.io.File file)
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.
|
static byte[] |
readDex(java.io.InputStream in) |
static byte[] |
readDex(java.nio.file.Path file) |
static byte[] |
toByteArray(java.io.InputStream is) |
public static byte[] toByteArray(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] readDex(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionpublic static byte[] readDex(java.nio.file.Path file)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] readDex(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] readDex(byte[] data)
throws java.io.IOException
data - java.io.IOException