com.jcraft.jzlib

Class ZOutputStream


public class ZOutputStream
extends OutputStream

Field Summary

protected byte[]
buf
protected byte[]
buf1
protected int
bufsize
protected boolean
compress
protected int
flush
protected OutputStream
out
protected ZStream
z

Constructor Summary

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

Method Summary

void
close()
void
end()
void
finish()
void
flush()
int
getFlushMode()
long
getTotalIn()
Returns the total number of bytes input so far.
long
getTotalOut()
Returns the total number of bytes output so far.
void
setFlushMode(int flush)
void
write(b[] , int off, int len)
void
write(int b)

Field Details

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 Details

ZOutputStream

public ZOutputStream(OutputStream out)

ZOutputStream

public ZOutputStream(OutputStream out,
                     int level)

ZOutputStream

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

Method Details

close

public void close()
            throws IOException

end

public void end()

finish

public void finish()
            throws IOException

flush

public void flush()
            throws IOException

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(b[] ,
                  int off,
                  int len)
            throws IOException

write

public void write(int b)
            throws IOException