|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.GZipUtil
public abstract class GZipUtil
Utility class to perform gzip on strings, byte arrays, etc.
Constructor Summary | |
---|---|
GZipUtil()
|
Method Summary | |
---|---|
static byte[] |
compress(byte[] value)
Compresses the byte array given using GZIP. |
static byte[] |
compress(java.lang.String value)
Compresses the string value into an array of bytes. |
static byte[] |
decompress(byte[] bytes)
Decompresses an array of bytes. |
static java.io.InputStream |
getInputStream(byte[] data)
Returns input stream to decompress the data as read. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GZipUtil()
Method Detail |
---|
public static byte[] compress(java.lang.String value) throws java.lang.RuntimeException
value
- - the string value to compress
java.lang.RuntimeException
- - if there is a decompression issue (rare).public static byte[] compress(byte[] value) throws java.lang.RuntimeException
value
- - the uncompressed data
java.lang.RuntimeException
- - if there is a problem.public static byte[] decompress(byte[] bytes) throws java.lang.RuntimeException
bytes
- - the compressed bytes to decompress.
java.lang.RuntimeException
- - if there is a decompression issue (rare).public static java.io.InputStream getInputStream(byte[] data) throws java.io.IOException
data
- the compressed bytes
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |