com.tobesoft.xplatform.tx.impl
Class PlatformZlibByteEncoder

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.util.zip.DeflaterOutputStream
              extended bycom.tobesoft.xplatform.tx.impl.PlatformZlibByteEncoder
All Implemented Interfaces:
ProtocolEncoder

public class PlatformZlibByteEncoder
extends java.util.zip.DeflaterOutputStream
implements ProtocolEncoder

OutputStream으로 데이터(stream)를 ZLIB 방식으로 압축을 수행한 후 출력한다.

Author:
Choi, Jongkwan

Field Summary
 
Fields inherited from class java.util.zip.DeflaterOutputStream
buf, def
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
PlatformZlibByteEncoder(java.io.OutputStream out)
          OutputStream을 가지는 생성자이다.
 
Method Summary
 void close()
          출력을 종료한다.
 void end()
          출력 데이터(stream)의 변환을 종료한다.
 
Methods inherited from class java.util.zip.DeflaterOutputStream
deflate, finish, write, write
 
Methods inherited from class java.io.FilterOutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformZlibByteEncoder

public PlatformZlibByteEncoder(java.io.OutputStream out)
                        throws java.io.IOException
OutputStream을 가지는 생성자이다.

Parameters:
out - OutputStream
Method Detail

close

public void close()
           throws java.io.IOException
출력을 종료한다.

Throws:
java.io.IOException

end

public void end()
         throws PlatformException
출력 데이터(stream)의 변환을 종료한다.

Specified by:
end in interface ProtocolEncoder
Throws:
PlatformException


Copyright © 2000-2011 TOBESOFT Co., Ltd.