jrdesktop.utilities
Class ZipUtility
java.lang.Object
jrdesktop.utilities.ZipUtility
public class ZipUtility
- extends java.lang.Object
ZipUtility.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipUtility
public ZipUtility()
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