public class ZInputStream
extends java.io.FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected byte[] |
buf1 |
protected int |
bufsize |
protected boolean |
compress |
protected int |
flush |
protected java.io.InputStream |
in |
protected ZStream |
z |
| Constructor and Description |
|---|
ZInputStream(java.io.InputStream in) |
ZInputStream(java.io.InputStream in,
boolean nowrap) |
ZInputStream(java.io.InputStream in,
int level) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getFlushMode() |
long |
getTotalIn()
Returns the total number of bytes input so far.
|
long |
getTotalOut()
Returns the total number of bytes output so far.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
setFlushMode(int flush) |
long |
skip(long n) |
protected ZStream z
protected int bufsize
protected int flush
protected byte[] buf
protected byte[] buf1
protected boolean compress
protected java.io.InputStream in
public ZInputStream(java.io.InputStream in)
public ZInputStream(java.io.InputStream in,
boolean nowrap)
public ZInputStream(java.io.InputStream in,
int level)
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic int getFlushMode()
public void setFlushMode(int flush)
public long getTotalIn()
public long getTotalOut()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOException