public class GZIPUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GZIP_CONTENT_ENCODING |
Constructor and Description |
---|
GZIPUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compressBufferToArray(ByteBuffer input)
Return a new byte array with the compressed contents of the input buffer
|
static byte[] |
uncompressBufferToArray(ByteBuffer contentBuffer) |
static byte[] |
uncompressStreamToArray(InputStream stream) |
public static final String GZIP_CONTENT_ENCODING
public static byte[] compressBufferToArray(ByteBuffer input)
input
- byte buffer to compresspublic static byte[] uncompressBufferToArray(ByteBuffer contentBuffer)
public static byte[] uncompressStreamToArray(InputStream stream)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.