jrdesktop.utilities
public class ZipUtility extends java.lang.Object
Constructor and Description |
---|
ZipUtility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
byteArraytoObject(byte[] data) |
static byte[] |
compress(byte[] input,
int level) |
static byte[] |
compressObject(java.lang.Object object,
int level) |
static byte[] |
decompress(byte[] compressedData) |
static java.lang.Object |
decompressObject(byte[] data) |
static byte[] |
objecttoByteArray(java.lang.Object obj) |
public static byte[] compress(byte[] input, int level)
public static byte[] decompress(byte[] compressedData)
public static byte[] compressObject(java.lang.Object object, int level) throws java.io.IOException
java.io.IOException
public static java.lang.Object decompressObject(byte[] data) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object byteArraytoObject(byte[] data) throws java.lang.Exception
java.lang.Exception
public static byte[] objecttoByteArray(java.lang.Object obj) throws java.io.IOException
java.io.IOException