Java Utililty Methods GZIPInputStream Create

List of utility methods to do GZIPInputStream Create

Description

The list of methods to do GZIPInputStream Create are organized into topic(s).

Method

InputStreamgetGZIPDecompressStream(byte[] buffer)
Create and return an InputStream that will read the given byte[] and decompress it as bytes are read from the stream.
ByteArrayInputStream bytesIn = new ByteArrayInputStream(buffer);
GZIPInputStream gzipIn = new GZIPInputStream(bytesIn);
return gzipIn;
InputStreamgetGzipInputStream(File file)
Returns a GZIPInputStream for a .gz file
return new GZIPInputStream(new FileInputStream(file));
GZIPInputStreamgetGZipInputStream(InputStream in)
Returns a Gzip input stream wrapping given input stream.
if (in == null) {
    return null;
return new GZIPInputStream(in);