public class CompressionUtil
extends java.lang.Object
| Constructor and Description |
|---|
CompressionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
compress(java.lang.String uncompressedString)
Returns the Gzip compressed value of the uncompressed string.
|
static java.lang.String |
uncompress(java.lang.String compressedString)
Returns the original uncompressed string.
|
public static java.lang.String compress(java.lang.String uncompressedString)
throws java.io.IOException
uncompressedString - the uncompressed stringjava.io.IOException - if a Gzip input stream could not be initialized or if
an IO exception occurredpublic static java.lang.String uncompress(java.lang.String compressedString)
throws java.io.IOException
compressedString - the compressed stringjava.io.IOException - if a Gzip input stream could not be initialized or if
an IO exception occurred