|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.stream.encoding.ZipEncoding
This class defines ZipEncoding/Decoding methods
Constructor Summary | |
ZipEncoding()
|
Method Summary | |
static byte[] |
decode(byte[] data)
Decode data using ZIP Decompression |
static byte[] |
encode(byte[] data)
Encode data using ZIP compression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZipEncoding()
Method Detail |
public static final byte[] encode(byte[] data) throws java.io.IOException
data
- byte array to compress
byte[]
of zip encoded data
java.io.IOException
- if fails reading/writing streamspublic static final byte[] decode(byte[] data) throws java.io.IOException
data
- the encoded data
byte[]
of decoded data
java.io.IOException
- if fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |