List of utility methods to do GZIPInputStream Create
InputStream | getGZIPDecompressStream(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; |
InputStream | getGzipInputStream(File file) Returns a GZIPInputStream for a .gz file return new GZIPInputStream(new FileInputStream(file)); |
GZIPInputStream | getGZipInputStream(InputStream in) Returns a Gzip input stream wrapping given input stream. if (in == null) { return null; return new GZIPInputStream(in); |