com.jcraft.jzlib

Class ZInputStream

public class ZInputStream extends FilterInputStream

Field Summary
protected byte[]buf
protected byte[]buf1
protected intbufsize
protected booleancompress
protected intflush
protected InputStreamin
protected ZStreamz
Constructor Summary
ZInputStream(InputStream in)
ZInputStream(InputStream in, boolean nowrap)
ZInputStream(InputStream in, int level)
Method Summary
voidclose()
intgetFlushMode()
longgetTotalIn()
Returns the total number of bytes input so far.
longgetTotalOut()
Returns the total number of bytes output so far.
intread()
intread(byte[] b, int off, int len)
voidsetFlushMode(int flush)
longskip(long n)

Field Detail

buf

protected byte[] buf

buf1

protected byte[] buf1

bufsize

protected int bufsize

compress

protected boolean compress

flush

protected int flush

in

protected InputStream in

z

protected ZStream z

Constructor Detail

ZInputStream

public ZInputStream(InputStream in)

ZInputStream

public ZInputStream(InputStream in, boolean nowrap)

ZInputStream

public ZInputStream(InputStream in, int level)

Method Detail

close

public void close()

getFlushMode

public int getFlushMode()

getTotalIn

public long getTotalIn()
Returns the total number of bytes input so far.

getTotalOut

public long getTotalOut()
Returns the total number of bytes output so far.

read

public int read()

read

public int read(byte[] b, int off, int len)

setFlushMode

public void setFlushMode(int flush)

skip

public long skip(long n)