com.caucho.hessian.io
Class Deflation.DeflateOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.hessian.io.Deflation.DeflateOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
Deflation

static class Deflation.DeflateOutputStream
extends java.io.OutputStream


Field Summary
private  java.io.OutputStream _bodyOut
           
private  java.util.zip.DeflaterOutputStream _deflateOut
           
private  Hessian2Output _out
           
 
Constructor Summary
Deflation.DeflateOutputStream(Hessian2Output out)
           
 
Method Summary
 void close()
           
 void write(byte[] buffer, int offset, int length)
           
 void write(int ch)
           
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_out

private Hessian2Output _out

_bodyOut

private java.io.OutputStream _bodyOut

_deflateOut

private java.util.zip.DeflaterOutputStream _deflateOut
Constructor Detail

Deflation.DeflateOutputStream

Deflation.DeflateOutputStream(Hessian2Output out)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

write

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

write

public void write(byte[] buffer,
                  int offset,
                  int length)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
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


Copyright 2003-2011. All Rights Reserved.