public class ZipUtil extends java.lang.Object
Constructor and Description |
---|
ZipUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
extract(java.lang.String zipFile)
Extract the specified zip file in to default location.
|
static boolean |
extract(java.lang.String zipFile,
java.lang.String outputDirectory)
Extract the specified zip file to the specified destination directory.
|
static byte[] |
pack(byte[] rawData)
Compress the specified array of byte and return packed data
|
static byte[] |
unpack(byte[] packedData)
Uncompress the specified array of byte and return unpacked data
|
public ZipUtil()
public static byte[] pack(byte[] rawData)
public static byte[] unpack(byte[] packedData)
public static boolean extract(java.lang.String zipFile, java.lang.String outputDirectory)
zipFile
- input zip file nameoutputDirectory
- output directory namepublic static boolean extract(java.lang.String zipFile)
zipFile
- input zip file name