public class ZipperUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARACTER_ENCODING_UTF_8 |
| Constructor and Description |
|---|
ZipperUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
unZip(byte[] input) |
static byte[] |
zip(String payload) |
public static final String CHARACTER_ENCODING_UTF_8
public static byte[] zip(String payload) throws UnsupportedEncodingException, IOException
payload - the payload to zipUnsupportedEncodingException - The Character Encoding is not supported.IOExceptionpublic static String unZip(byte[] input) throws UnsupportedEncodingException, IOException
input - The zip dataUnsupportedEncodingException - The Character Encoding is not supported.IOExceptionCopyright © 2016. All rights reserved.