public abstract class ZlibEncoder extends MessageToByteEncoder<ByteBuf>
ByteBuf
using the deflate algorithm.ChannelHandler.Sharable
Modifier | Constructor and Description |
---|---|
protected |
ZlibEncoder() |
Modifier and Type | Method and Description |
---|---|
abstract ChannelFuture |
close()
Close this
ZlibEncoder and so finish the encoding. |
abstract ChannelFuture |
close(ChannelPromise promise)
Close this
ZlibEncoder and so finish the encoding. |
abstract boolean |
isClosed()
Returns
true if and only if the end of the compressed stream
has been reached. |
acceptOutboundMessage, allocateBuffer, encode, isPreferDirect, write
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
public abstract boolean isClosed()
true
if and only if the end of the compressed stream
has been reached.public abstract ChannelFuture close()
ZlibEncoder
and so finish the encoding.
The returned ChannelFuture
will be notified once the
operation completes.public abstract ChannelFuture close(ChannelPromise promise)
ZlibEncoder
and so finish the encoding.
The given ChannelFuture
will be notified once the operation
completes and will also be returned.Copyright © 2008–2017 The Netty Project. All rights reserved.