Java Utililty Methods Gunzip Byte Array

List of utility methods to do Gunzip Byte Array

Description

The list of methods to do Gunzip Byte Array are organized into topic(s).

Method

byte[]gunzip(final byte[] pInput)
Uncompress the given byte array using the gzip algorithm and return the uncompressed byte array.
final ByteArrayInputStream vByteArrayStream = new ByteArrayInputStream(pInput);
final ByteArrayOutputStream vByteArrayOutputStream = new ByteArrayOutputStream(pInput.length);
final InputStream vInflaterStream = new GZIPInputStream(vByteArrayStream);
ByteStreams.copy(vInflaterStream, vByteArrayOutputStream);
vInflaterStream.close();
final byte[] vUnCompressedBytes = vByteArrayOutputStream.toByteArray();
return vUnCompressedBytes;