aQute.libg.gzip
Class GZipUtils

java.lang.Object
  extended by aQute.libg.gzip.GZipUtils

public class GZipUtils
extends Object


Constructor Summary
GZipUtils()
           
 
Method Summary
static InputStream detectCompression(InputStream stream)
          Determines whether the specified stream contains gzipped data, by checking for the GZIP magic number, and returns a stream capable of reading those data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GZipUtils

public GZipUtils()
Method Detail

detectCompression

public static InputStream detectCompression(InputStream stream)
                                     throws IOException
Determines whether the specified stream contains gzipped data, by checking for the GZIP magic number, and returns a stream capable of reading those data.

Throws:
IOException


Copyright © 2014 aQute SARL. All rights reserved.