public class CompressionSupport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALG_DEFLATE |
static String |
ALG_GZIP |
Constructor and Description |
---|
CompressionSupport() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compress(String alg,
byte[] content) |
static InputStream |
createCompressionInputStream(String alg,
byte[] content) |
static byte[] |
decompress(String alg,
byte[] content) |
static String |
getAvailableAlgorithm(String httpContentEncoding) |
static String |
getAvailableAlgorithms(String separator) |
public static final String ALG_GZIP
public static final String ALG_DEFLATE
public static byte[] compress(String alg, byte[] content) throws Exception
Exception
public static byte[] decompress(String alg, byte[] content) throws Exception
Exception
public static InputStream createCompressionInputStream(String alg, byte[] content) throws Exception
Exception
Copyright © 2019. All Rights Reserved.