Package com.jcraft.jzlib
Class GZIPInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.jcraft.jzlib.InflaterInputStream
-
- com.jcraft.jzlib.GZIPInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class GZIPInputStream extends InflaterInputStream
-
-
Field Summary
-
Fields inherited from class com.jcraft.jzlib.InflaterInputStream
buf, DEFAULT_BUFSIZE, inflater, myinflater
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description GZIPInputStream(InputStream in)GZIPInputStream(InputStream in, int size, boolean close_in)GZIPInputStream(InputStream in, Inflater inflater, int size, boolean close_in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()longgetCRC()longgetModifiedtime()StringgetName()intgetOS()voidreadHeader()-
Methods inherited from class com.jcraft.jzlib.InflaterInputStream
available, close, fill, getAvailIn, getInflater, getTotalIn, getTotalOut, mark, markSupported, read, read, reset, skip
-
Methods inherited from class java.io.FilterInputStream
read
-
-
-
-
Constructor Detail
-
GZIPInputStream
public GZIPInputStream(InputStream in) throws IOException
- Throws:
IOException
-
GZIPInputStream
public GZIPInputStream(InputStream in, int size, boolean close_in) throws IOException
- Throws:
IOException
-
GZIPInputStream
public GZIPInputStream(InputStream in, Inflater inflater, int size, boolean close_in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getModifiedtime
public long getModifiedtime()
-
getOS
public int getOS()
-
getName
public String getName()
-
getComment
public String getComment()
-
getCRC
public long getCRC() throws GZIPException- Throws:
GZIPException
-
readHeader
public void readHeader() throws IOException- Overrides:
readHeaderin classInflaterInputStream- Throws:
IOException
-
-