public class ZipUtils extends Object
| Constructor and Description |
|---|
ZipUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
UnzipBytes(byte[] input) |
static void |
UnzipFile(File infile,
File outfile) |
static String |
UnzipString(byte[] bytes) |
static String |
UnzipString(byte[] bytes,
String CharSet) |
static byte[] |
ZipBytes(byte[] input) |
static byte[] |
ZipBytes(byte[] input,
int length) |
static byte[] |
ZipBytes(byte[] input,
int offset,
int length) |
static byte[] |
ZipString(String input) |
static byte[] |
ZipString(String input,
String CharSet) |
public static byte[] ZipBytes(byte[] input)
throws IOException
IOExceptionpublic static byte[] ZipBytes(byte[] input,
int length)
throws IOException
IOExceptionpublic static byte[] ZipBytes(byte[] input,
int offset,
int length)
throws IOException
IOExceptionpublic static byte[] UnzipBytes(byte[] input)
throws IOException
IOExceptionpublic static byte[] ZipString(String input) throws IOException
IOExceptionpublic static byte[] ZipString(String input, String CharSet) throws IOException
IOExceptionpublic static String UnzipString(byte[] bytes) throws IOException
IOExceptionpublic static String UnzipString(byte[] bytes, String CharSet) throws IOException
IOExceptionpublic static void UnzipFile(File infile, File outfile) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2018. All Rights Reserved.