Top Description Constructors Methods
io.netty.handler.codec.compression

public abstract Class ZlibEncoder

extends MessageToByteEncoder<ByteBuf>
Class Inheritance
Known Direct Subclasses
io.netty.handler.codec.compression.JdkZlibEncoder, io.netty.handler.codec.compression.JZlibEncoder
Imports
io.netty.buffer.ByteBuf, io.netty.channel.ChannelFuture, .ChannelPromise, io.netty.handler.codec.MessageToByteEncoder

Compresses a ByteBuf using the deflate algorithm.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract ChannelFuture
close()

Close this ZlibEncoder and so finish the encoding.

public abstract ChannelFuture
close(ChannelPromise promise)

Close this ZlibEncoder and so finish the encoding.

public abstract boolean
isClosed()

Returns true if and only if the end of the compressed stream has been reached.

Inherited from io.netty.handler.codec.MessageToByteEncoder:
acceptOutboundMessageallocateBufferencodeisPreferDirectwrite

Constructor Detail

ZlibEncoderback to summary
protected ZlibEncoder()

Method Detail

closeback to summary
public abstract ChannelFuture close()

Close this ZlibEncoder and so finish the encoding. The returned ChannelFuture will be notified once the operation completes.

closeback to summary
public abstract ChannelFuture close(ChannelPromise promise)

Close this ZlibEncoder and so finish the encoding. The given ChannelFuture will be notified once the operation completes and will also be returned.

isClosedback to summary
public abstract boolean isClosed()

Returns true if and only if the end of the compressed stream has been reached.