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 String
getComment()
long
getCRC()
long
getModifiedtime()
String
getName()
int
getOS()
void
readHeader()
-
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
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
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:
readHeader
in classInflaterInputStream
- Throws:
IOException
-
-