public class Gzip
extends java.lang.Object
Constructor and Description |
---|
Gzip() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
gzip(byte[] plainContent) |
static byte[] |
gzip(java.lang.String plainContent) |
static byte[] |
gzip(java.lang.String plainContent,
java.nio.charset.Charset charset) |
static boolean |
isGzipped(byte[] content) |
static byte[] |
unGzip(byte[] gzippedContent) |
static java.lang.String |
unGzipToString(byte[] gzippedContent) |
public static byte[] unGzip(byte[] gzippedContent)
public static java.lang.String unGzipToString(byte[] gzippedContent)
public static byte[] gzip(java.lang.String plainContent)
public static byte[] gzip(java.lang.String plainContent, java.nio.charset.Charset charset)
public static byte[] gzip(byte[] plainContent)
public static boolean isGzipped(byte[] content)