com.go.trove.util
Class DeflaterOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--com.go.trove.util.DeflaterOutputStream

public class DeflaterOutputStream
extends java.io.FilterOutputStream

Just like DeflaterOutputStream, except uses a different Deflater implementation.

Version:
1 , 01/06/13
Author:
Brian S O'Neill

Field Summary
protected  byte[] mBuffer
           
protected  Deflater mDeflater
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
DeflaterOutputStream(java.io.OutputStream out)
           
DeflaterOutputStream(java.io.OutputStream out, Deflater def)
           
DeflaterOutputStream(java.io.OutputStream out, Deflater def, byte[] buf)
           
DeflaterOutputStream(java.io.OutputStream out, Deflater def, int size)
           
 
Method Summary
 void close()
           
 void finish()
           
 void flush()
           
 void fullFlush()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mDeflater

protected Deflater mDeflater

mBuffer

protected byte[] mBuffer
Constructor Detail

DeflaterOutputStream

public DeflaterOutputStream(java.io.OutputStream out,
                            Deflater def,
                            byte[] buf)

DeflaterOutputStream

public DeflaterOutputStream(java.io.OutputStream out,
                            Deflater def,
                            int size)

DeflaterOutputStream

public DeflaterOutputStream(java.io.OutputStream out,
                            Deflater def)

DeflaterOutputStream

public DeflaterOutputStream(java.io.OutputStream out)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream

write

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

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.FilterOutputStream

fullFlush

public void fullFlush()
               throws java.io.IOException

finish

public void finish()
            throws java.io.IOException

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.FilterOutputStream