Package aQute.libg.gzip
Class GZipUtils
- java.lang.Object
-
- aQute.libg.gzip.GZipUtils
-
public class GZipUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GZipUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.InputStream
detectCompression(java.io.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.private static int
readUByte(java.io.InputStream in)
private static int
readUShort(java.io.InputStream in)
-
-
-
Method Detail
-
detectCompression
public static java.io.InputStream detectCompression(java.io.InputStream stream) throws java.io.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:
java.io.IOException
-
readUShort
private static int readUShort(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
readUByte
private static int readUByte(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
-