public class GzipCompressor
extends java.lang.Object
Constructor and Description |
---|
GzipCompressor() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(byte[] value,
int prefix)
Encodes into compressed form.
|
static byte[] |
decompress(byte[] value,
int prefix)
Decodes from compressed form.
|
public static byte[] compress(byte[] value, int prefix) throws SupportException
value
- value to compressprefix
- prefix of byte array to preserveSupportException
- thrown if compression failedpublic static byte[] decompress(byte[] value, int prefix) throws CorruptEncodingException
value
- value to decompressprefix
- prefix of byte array to preserveCorruptEncodingException
- thrown if value cannot be decompressedCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.