public abstract class ZlibEncoder extends MessageToByteEncoder<ByteBuf>
ByteBuf
using the deflate algorithm.ChannelHandler.Sharable
限定符 | 构造器和说明 |
---|---|
protected |
ZlibEncoder() |
限定符和类型 | 方法和说明 |
---|---|
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, 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.