com.jcraft.jzlib

Class ZOutputStream

public class ZOutputStream extends OutputStream

Field Summary
protected byte[]buf
protected byte[]buf1
protected intbufsize
protected booleancompress
protected intflush
protected OutputStreamout
protected ZStreamz
Constructor Summary
ZOutputStream(OutputStream out)
ZOutputStream(OutputStream out, int level)
ZOutputStream(OutputStream out, int level, boolean nowrap)
Method Summary
voidclose()
voidend()
voidfinish()
voidflush()
intgetFlushMode()
longgetTotalIn()
Returns the total number of bytes input so far.
longgetTotalOut()
Returns the total number of bytes output so far.
voidsetFlushMode(int flush)
voidwrite(int b)
voidwrite(byte[] b, int off, int len)

Field Detail

buf

protected byte[] buf

buf1

protected byte[] buf1

bufsize

protected int bufsize

compress

protected boolean compress

flush

protected int flush

out

protected OutputStream out

z

protected ZStream z

Constructor Detail

ZOutputStream

public ZOutputStream(OutputStream out)

ZOutputStream

public ZOutputStream(OutputStream out, int level)

ZOutputStream

public ZOutputStream(OutputStream out, int level, boolean nowrap)

Method Detail

close

public void close()

end

public void end()

finish

public void finish()

flush

public void flush()

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.

setFlushMode

public void setFlushMode(int flush)

write

public void write(int b)

write

public void write(byte[] b, int off, int len)