|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.utils.zip.CompressionUtil
public final class CompressionUtil
Compress / Decompress.
| Method Summary | |
|---|---|
static byte[] |
compressByteArray(byte[] input)
Compress the byte array passed |
static byte[] |
compressByteArray(byte[] input,
int bufferLength)
Compress the byte array passed |
static byte[] |
decompressByteArray(byte[] input)
Decompress the byte array passed using a default buffer length of 1024. |
static byte[] |
decompressByteArray(byte[] input,
int bufferLength)
Decompress the byte array passed |
static byte[] |
decompressGzipByteArray(byte[] compressedByteArray)
decompress a gzip byte array, using a default buffer length of 1024 |
static byte[] |
decompressGzipByteArray(byte[] compressedByteArray,
int bufferlength)
decompress a gzip byte array, using a default buffer length of 1024 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] decompressByteArray(byte[] input)
input - compressed byte array webservice response
public static byte[] decompressByteArray(byte[] input,
int bufferLength)
input - compressed byte array webservice responsebufferLength - buffer length
public static byte[] compressByteArray(byte[] input)
throws IOException
input - byte array
IOException - thrown if we can't close the output stream
public static byte[] compressByteArray(byte[] input,
int bufferLength)
throws IOException
input - byte arraybufferLength - buffer length
IOException - thrown if we can't close the output stream
public static byte[] decompressGzipByteArray(byte[] compressedByteArray)
throws IOException
compressedByteArray - gzip-compressed byte array
IOException - thrown if there was a failure to construct the GzipInputStream
public static byte[] decompressGzipByteArray(byte[] compressedByteArray,
int bufferlength)
throws IOException
compressedByteArray - gzip-compressed byte arraybufferlength - size of the buffer in bytes
IOException - thrown if there was a failure to construct the GzipInputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||