public final class ZipUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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
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
java.io.IOException