Class ZlibEncoder
java.lang.Object
- All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
- Direct Known Subclasses:
JdkZlibEncoder, JZlibEncoder
Compresses a
ByteBuf using the deflate algorithm.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ChannelFutureclose()Close thisZlibEncoderand so finish the encoding.abstract ChannelFutureclose(ChannelPromise promise) Close thisZlibEncoderand so finish the encoding.abstract booleanisClosed()Returnstrueif and only if the end of the compressed stream has been reached.Methods inherited from class MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, encode, isPreferDirect, writeMethods inherited from class ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelHandler
exceptionCaught, handlerAdded, handlerRemoved
-
Constructor Details
-
ZlibEncoder
protected ZlibEncoder()
-
-
Method Details
-
isClosed
public abstract boolean isClosed()Returnstrueif and only if the end of the compressed stream has been reached. -
close
Close thisZlibEncoderand so finish the encoding. The returnedChannelFuturewill be notified once the operation completes. -
close
Close thisZlibEncoderand so finish the encoding. The givenChannelFuturewill be notified once the operation completes and will also be returned.
-