com.jcraft.jzlib

Class ZOutputStream


public class ZOutputStream
extends OutputStream

Field Summary

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

Constructor Summary

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

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


bufsize

protected int bufsize


compress

protected boolean compress


flush

protected int flush


z

protected ZStream z

Constructor Details

ZOutputStream

public ZOutputStream(OutputStream out)


ZOutputStream

public ZOutputStream(OutputStream out,
                     int level)

Method Details

close

public void close()
            throws IOException


end

public void end()
            throws IOException


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