Package com.jcraft.jzlib
Class InflaterInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- com.jcraft.jzlib.InflaterInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
GZIPInputStream
public class InflaterInputStream extends FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]bufprotected static intDEFAULT_BUFSIZEprotected Inflaterinflaterprotected booleanmyinflater-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description InflaterInputStream(InputStream in)InflaterInputStream(InputStream in, boolean nowrap)InflaterInputStream(InputStream in, Inflater inflater)InflaterInputStream(InputStream in, Inflater inflater, int size)InflaterInputStream(InputStream in, Inflater inflater, int size, boolean close_in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()protected voidfill()byte[]getAvailIn()InflatergetInflater()longgetTotalIn()longgetTotalOut()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b, int off, int len)voidreadHeader()voidreset()longskip(long n)-
Methods inherited from class java.io.FilterInputStream
read
-
-
-
-
Field Detail
-
inflater
protected final Inflater inflater
-
buf
protected byte[] buf
-
DEFAULT_BUFSIZE
protected static final int DEFAULT_BUFSIZE
- See Also:
- Constant Field Values
-
myinflater
protected boolean myinflater
-
-
Constructor Detail
-
InflaterInputStream
public InflaterInputStream(InputStream in) throws IOException
- Throws:
IOException
-
InflaterInputStream
public InflaterInputStream(InputStream in, boolean nowrap) throws IOException
- Throws:
IOException
-
InflaterInputStream
public InflaterInputStream(InputStream in, Inflater inflater) throws IOException
- Throws:
IOException
-
InflaterInputStream
public InflaterInputStream(InputStream in, Inflater inflater, int size) throws IOException
- Throws:
IOException
-
InflaterInputStream
public InflaterInputStream(InputStream in, Inflater inflater, int size, boolean close_in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classFilterInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
fill
protected void fill() throws IOException- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classFilterInputStream
-
mark
public void mark(int readlimit)
- Overrides:
markin classFilterInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
getTotalIn
public long getTotalIn()
-
getTotalOut
public long getTotalOut()
-
getAvailIn
public byte[] getAvailIn()
-
readHeader
public void readHeader() throws IOException- Throws:
IOException
-
getInflater
public Inflater getInflater()
-
-