Home / Class/ ZlibEncoder Class — netty Architecture

ZlibEncoder Class — netty Architecture

Architecture documentation for the ZlibEncoder class in ZlibEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f8842756_260b_f9e7_9748_9742ed8726a8["ZlibEncoder"]
  955a88d9_d4d3_21c4_770f_2f0d1d762264["ZlibEncoder.java"]
  f8842756_260b_f9e7_9748_9742ed8726a8 -->|defined in| 955a88d9_d4d3_21c4_770f_2f0d1d762264
  942b541f_82a0_8600_21d9_5971382f3494["ZlibEncoder()"]
  f8842756_260b_f9e7_9748_9742ed8726a8 -->|method| 942b541f_82a0_8600_21d9_5971382f3494
  40b70018_e9a8_66ee_69c3_46d302686472["isClosed()"]
  f8842756_260b_f9e7_9748_9742ed8726a8 -->|method| 40b70018_e9a8_66ee_69c3_46d302686472
  20b12399_615a_4ff1_ba77_569bd34b3843["ChannelFuture()"]
  f8842756_260b_f9e7_9748_9742ed8726a8 -->|method| 20b12399_615a_4ff1_ba77_569bd34b3843

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/ZlibEncoder.java lines 26–53

public abstract class ZlibEncoder extends MessageToByteEncoder<ByteBuf> {

    protected ZlibEncoder() {
        super(ByteBuf.class, false);
    }

    /**
     * Returns {@code true} if and only if the end of the compressed stream
     * has been reached.
     */
    public abstract boolean isClosed();

    /**
     * Close this {@link ZlibEncoder} and so finish the encoding.
     *
     * The returned {@link ChannelFuture} will be notified once the
     * operation completes.
     */
    public abstract ChannelFuture close();

    /**
     * Close this {@link ZlibEncoder} and so finish the encoding.
     * The given {@link ChannelFuture} will be notified once the operation
     * completes and will also be returned.
     */
    public abstract ChannelFuture close(ChannelPromise promise);

}

Frequently Asked Questions

What is the ZlibEncoder class?
ZlibEncoder is a class in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/ZlibEncoder.java.
Where is ZlibEncoder defined?
ZlibEncoder is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/ZlibEncoder.java at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free