| 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectorg.jboss.netty.handler.codec.oneone.OneToOneEncoder
org.jboss.netty.handler.codec.compression.ZlibEncoder
public class ZlibEncoder

Compresses a ChannelBuffer using the deflate algorithm.
| 嵌套类摘要 | 
|---|
| 从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口 | 
|---|
ChannelHandler.Sharable | 
| 构造方法摘要 | |
|---|---|
ZlibEncoder()
Creates a new zlib encoder with the default compression level ( 6)
 and the default wrapper (ZlibWrapper.ZLIB). | 
|
ZlibEncoder(byte[] dictionary)
Creates a new zlib encoder with the default compression level ( 6)
 and the specified preset dictionary. | 
|
ZlibEncoder(int compressionLevel)
Creates a new zlib encoder with the specified compressionLevel
 and the default wrapper (ZlibWrapper.ZLIB). | 
|
ZlibEncoder(int compressionLevel,
            byte[] dictionary)
Creates a new zlib encoder with the specified compressionLevel
 and the specified preset dictionary. | 
|
ZlibEncoder(ZlibWrapper wrapper)
Creates a new zlib encoder with the default compression level ( 6)
 and the specified wrapper. | 
|
ZlibEncoder(ZlibWrapper wrapper,
            int compressionLevel)
Creates a new zlib encoder with the specified compressionLevel
 and the specified wrapper. | 
|
| 方法摘要 | |
|---|---|
 void | 
afterAdd(ChannelHandlerContext ctx)
 | 
 void | 
afterRemove(ChannelHandlerContext ctx)
 | 
 void | 
beforeAdd(ChannelHandlerContext ctx)
 | 
 void | 
beforeRemove(ChannelHandlerContext ctx)
 | 
 ChannelFuture | 
close()
 | 
 void | 
handleDownstream(ChannelHandlerContext ctx,
                 ChannelEvent evt)
处理指定的下游事件.  | 
 boolean | 
isClosed()
 | 
| 从类 java.lang.Object 继承的方法 | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public ZlibEncoder()
6)
 and the default wrapper (ZlibWrapper.ZLIB).
CompressionException - if failed to initialize zlibpublic ZlibEncoder(int compressionLevel)
compressionLevel
 and the default wrapper (ZlibWrapper.ZLIB).
compressionLevel - 1 yields the fastest compression and 9 yields the
        best compression.  0 means no compression.  The default
        compression level is 6.
CompressionException - if failed to initialize zlibpublic ZlibEncoder(ZlibWrapper wrapper)
6)
 and the specified wrapper.
CompressionException - if failed to initialize zlib
public ZlibEncoder(ZlibWrapper wrapper,
                   int compressionLevel)
compressionLevel
 and the specified wrapper.
compressionLevel - 1 yields the fastest compression and 9 yields the
        best compression.  0 means no compression.  The default
        compression level is 6.
CompressionException - if failed to initialize zlibpublic ZlibEncoder(byte[] dictionary)
6)
 and the specified preset dictionary.  The wrapper is always
 ZlibWrapper.ZLIB because it is the only format that supports
 the preset dictionary.
dictionary - the preset dictionary
CompressionException - if failed to initialize zlib
public ZlibEncoder(int compressionLevel,
                   byte[] dictionary)
compressionLevel
 and the specified preset dictionary.  The wrapper is always
 ZlibWrapper.ZLIB because it is the only format that supports
 the preset dictionary.
compressionLevel - 1 yields the fastest compression and 9 yields the
        best compression.  0 means no compression.  The default
        compression level is 6.dictionary - the preset dictionary
CompressionException - if failed to initialize zlib| 方法详细信息 | 
|---|
public ChannelFuture close()
public boolean isClosed()
public void handleDownstream(ChannelHandlerContext ctx,
                             ChannelEvent evt)
                      throws java.lang.Exception
ChannelDownstreamHandler 复制的描述
ChannelDownstreamHandler 中的 handleDownstreamOneToOneEncoder 中的 handleDownstreamctx - 处理器的上下文对象evt - 要处理或拦截的事件
java.lang.Exception
public void beforeAdd(ChannelHandlerContext ctx)
               throws java.lang.Exception
LifeCycleAwareChannelHandler 中的 beforeAddjava.lang.Exception
public void afterAdd(ChannelHandlerContext ctx)
              throws java.lang.Exception
LifeCycleAwareChannelHandler 中的 afterAddjava.lang.Exception
public void beforeRemove(ChannelHandlerContext ctx)
                  throws java.lang.Exception
LifeCycleAwareChannelHandler 中的 beforeRemovejava.lang.Exception
public void afterRemove(ChannelHandlerContext ctx)
                 throws java.lang.Exception
LifeCycleAwareChannelHandler 中的 afterRemovejava.lang.Exception
  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||