net.ssh.jzlib
Class ZOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by net.ssh.jzlib.ZOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ZOutputStream
extends java.io.OutputStream


Constructor Summary
ZOutputStream(java.io.OutputStream out)
           
ZOutputStream(java.io.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(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZOutputStream

public ZOutputStream(java.io.OutputStream out)

ZOutputStream

public ZOutputStream(java.io.OutputStream out,
                     int level)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

getFlushMode

public int getFlushMode()

setFlushMode

public void setFlushMode(int flush)

finish

public void finish()
            throws java.io.IOException
Throws:
java.io.IOException

end

public void end()
         throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

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.


flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException