Class ZlibEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
-
- io.netty.handler.codec.compression.ZlibEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
- Direct Known Subclasses:
JdkZlibEncoder,JZlibEncoder
public abstract class ZlibEncoder extends io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>Compresses aByteBufusing the deflate algorithm.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedZlibEncoder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract io.netty.channel.ChannelFutureclose()Close thisZlibEncoderand so finish the encoding.abstract io.netty.channel.ChannelFutureclose(io.netty.channel.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 io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, encode, isPreferDirect, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
isClosed
public abstract boolean isClosed()
Returnstrueif and only if the end of the compressed stream has been reached.
-
close
public abstract io.netty.channel.ChannelFuture close()
Close thisZlibEncoderand so finish the encoding. The returnedChannelFuturewill be notified once the operation completes.
-
close
public abstract io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise promise)
Close thisZlibEncoderand so finish the encoding. The givenChannelFuturewill be notified once the operation completes and will also be returned.
-
-