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:
java.io.Closeable,java.lang.AutoCloseable
public class GZIPInputStream extends InflaterInputStream
-
-
Field Summary
-
Fields inherited from class com.jcraft.jzlib.InflaterInputStream
buf, DEFAULT_BUFSIZE, inflater, myinflater
-
-
Constructor Summary
Constructors Constructor Description GZIPInputStream(java.io.InputStream in)GZIPInputStream(java.io.InputStream in, int size, boolean close_in)GZIPInputStream(java.io.InputStream in, Inflater inflater, int size, boolean close_in)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetComment()longgetCRC()longgetModifiedtime()Deprecated.use getModifiedTime()longgetModifiedTime()java.lang.StringgetName()intgetOS()voidreadHeader()-
Methods inherited from class com.jcraft.jzlib.InflaterInputStream
available, close, fill, getAvailIn, getInflater, getTotalIn, getTotalOut, mark, markSupported, read, read, reset, skip
-
-
-
-
Constructor Detail
-
GZIPInputStream
public GZIPInputStream(java.io.InputStream in) throws java.io.IOException- Throws:
java.io.IOException
-
GZIPInputStream
public GZIPInputStream(java.io.InputStream in, int size, boolean close_in) throws java.io.IOException- Throws:
java.io.IOException
-
GZIPInputStream
public GZIPInputStream(java.io.InputStream in, Inflater inflater, int size, boolean close_in) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getModifiedtime
public long getModifiedtime()
Deprecated.use getModifiedTime()- Returns:
- long modified time.
-
getModifiedTime
public long getModifiedTime()
- Returns:
- the modified time.
-
getOS
public int getOS()
-
getName
public java.lang.String getName()
-
getComment
public java.lang.String getComment()
-
getCRC
public long getCRC() throws GZIPException- Throws:
GZIPException
-
readHeader
public void readHeader() throws java.io.IOException- Overrides:
readHeaderin classInflaterInputStream- Throws:
java.io.IOException
-
-