Home / Type/ BrotliMode Type — netty Architecture

BrotliMode Type — netty Architecture

Architecture documentation for the BrotliMode type/interface in BrotliMode.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f390a460_d187_69c0_3580_d1ce57dbf653["BrotliMode"]
  cf03df15_69f4_4566_244f_15d232064651["BrotliMode.java"]
  f390a460_d187_69c0_3580_d1ce57dbf653 -->|defined in| cf03df15_69f4_4566_244f_15d232064651
  style f390a460_d187_69c0_3580_d1ce57dbf653 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/BrotliMode.java lines 25–61

public enum BrotliMode {

    /**
     * The compressor does not make any assumptions about the input data's properties,
     * making it suitable for a wide range of data types.
     * default mode.
     */
    GENERIC,

    /**
     * Optimized for UTF-8 formatted text input.
     */
    TEXT,

    /**
     * Designed specifically for font data compression, as used in WOFF 2.0.
     */
    FONT;

    /**
     * Convert to Brotli {@link Encoder.Mode}.
     *
     * @return a new {@link Encoder.Mode}
     */
    Mode adapt() {
        switch (this) {
            case GENERIC:
                return Mode.GENERIC;
            case TEXT:
                return Mode.TEXT;
            case FONT:
                return Mode.FONT;
            default:
                throw new IllegalStateException("Unsupported enum value: " + this);
        }
    }
}

Frequently Asked Questions

What is the BrotliMode type?
BrotliMode is a type/interface in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/BrotliMode.java.
Where is BrotliMode defined?
BrotliMode is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/BrotliMode.java at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free