|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.netty.handler.codec.oneone.OneToOneDecoder
org.jboss.netty.handler.codec.compression.ZlibDecoder
public class ZlibDecoder
Decompresses a ChannelBuffer
using the deflate algorithm.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
---|
ChannelHandler.Sharable |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
protected Object |
decode(ChannelHandlerContext ctx,
Channel channel,
Object msg)
Transforms the specified received message into another message and return the transformed message. |
boolean |
isClosed()
Returns true if and only if the end of the compressed stream
has been reached. |
Methods inherited from class org.jboss.netty.handler.codec.oneone.OneToOneDecoder |
---|
handleUpstream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZlibDecoder()
ZlibWrapper.ZLIB
).
CompressionException
- if failed to initialize zlibpublic ZlibDecoder(ZlibWrapper wrapper)
CompressionException
- if failed to initialize zlibpublic ZlibDecoder(byte[] dictionary)
ZlibWrapper.ZLIB
because it is the only format that
supports the preset dictionary.
CompressionException
- if failed to initialize zlibMethod Detail |
---|
public boolean isClosed()
true
if and only if the end of the compressed stream
has been reached.
protected Object decode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception
OneToOneDecoder
null
if the received message
is supposed to be discarded.
decode
in class OneToOneDecoder
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |