jrdesktop.utilities
Class ZipUtility

java.lang.Object
  extended by jrdesktop.utilities.ZipUtility

public class ZipUtility
extends java.lang.Object

ZipUtility.java


Constructor Summary
ZipUtility()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipUtility

public ZipUtility()
Method Detail

compress

public static byte[] compress(byte[] input,
                              int level)

decompress

public static byte[] decompress(byte[] compressedData)

compressObject

public static byte[] compressObject(java.lang.Object object,
                                    int level)
                             throws java.io.IOException
Throws:
java.io.IOException

decompressObject

public static java.lang.Object decompressObject(byte[] data)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

byteArraytoObject

public static java.lang.Object byteArraytoObject(byte[] data)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

objecttoByteArray

public static byte[] objecttoByteArray(java.lang.Object obj)
                                throws java.io.IOException
Throws:
java.io.IOException