Class GZipUtils

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

public class GZipUtils extends Object
  • Constructor Details

    • GZipUtils

      public GZipUtils()
  • Method Details

    • 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
    • readUnsignedShort

      private static int readUnsignedShort(InputStream in) throws IOException
      Throws:
      IOException