org.jboss.netty.handler.codec.compression
类 ZlibDecoder

java.lang.Object
  继承者 org.jboss.netty.handler.codec.oneone.OneToOneDecoder
      继承者 org.jboss.netty.handler.codec.compression.ZlibDecoder
所有已实现的接口:
ChannelHandler, ChannelUpstreamHandler

public class ZlibDecoder
extends OneToOneDecoder

Decompresses a ChannelBuffer using the deflate algorithm.


嵌套类摘要
 
从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口
ChannelHandler.Sharable
 
构造方法摘要
ZlibDecoder()
          Creates a new instance with the default wrapper (ZlibWrapper.ZLIB).
ZlibDecoder(byte[] dictionary)
          Creates a new instance with the specified preset dictionary.
ZlibDecoder(ZlibWrapper wrapper)
          Creates a new instance with the specified wrapper.
 
方法摘要
 boolean isClosed()
          Returns true if and only if the end of the compressed stream has been reached.
 
从类 org.jboss.netty.handler.codec.oneone.OneToOneDecoder 继承的方法
handleUpstream
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ZlibDecoder

public ZlibDecoder()
Creates a new instance with the default wrapper (ZlibWrapper.ZLIB).

抛出:
CompressionException - if failed to initialize zlib

ZlibDecoder

public ZlibDecoder(ZlibWrapper wrapper)
Creates a new instance with the specified wrapper.

抛出:
CompressionException - if failed to initialize zlib

ZlibDecoder

public ZlibDecoder(byte[] dictionary)
Creates a new instance with the specified preset dictionary. The wrapper is always ZlibWrapper.ZLIB because it is the only format that supports the preset dictionary.

抛出:
CompressionException - if failed to initialize zlib
方法详细信息

isClosed

public boolean isClosed()
Returns true if and only if the end of the compressed stream has been reached.