public class GZipUtils
extends java.lang.Object
Constructor and Description |
---|
GZipUtils() |
Modifier and Type | Method and 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) |
public static java.io.InputStream detectCompression(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
private static int readUShort(java.io.InputStream in) throws java.io.IOException
java.io.IOException
private static int readUByte(java.io.InputStream in) throws java.io.IOException
java.io.IOException