Home / Type/ Databits Type — netty Architecture

Databits Type — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  d95ac377_638e_bdee_b1ae_f34b306609f3["Databits"]
  e44bacc8_8508_4cea_f355_1d8a8899dc98["RxtxChannelConfig.java"]
  d95ac377_638e_bdee_b1ae_f34b306609f3 -->|defined in| e44bacc8_8508_4cea_f355_1d8a8899dc98
  style d95ac377_638e_bdee_b1ae_f34b306609f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannelConfig.java lines 91–127

    enum Databits {
        /**
         * 5 data bits will be used for each character (ie. Baudot code)
         */
        DATABITS_5(SerialPort.DATABITS_5),
        /**
         * 6 data bits will be used for each character
         */
        DATABITS_6(SerialPort.DATABITS_6),
        /**
         * 7 data bits will be used for each character (ie. ASCII)
         */
        DATABITS_7(SerialPort.DATABITS_7),
        /**
         * 8 data bits will be used for each character (ie. binary data)
         */
        DATABITS_8(SerialPort.DATABITS_8);

        private final int value;

        Databits(int value) {
            this.value = value;
        }

        public int value() {
            return value;
        }

        public static Databits valueOf(int value) {
            for (Databits databit : Databits.values()) {
                if (databit.value == value) {
                    return databit;
                }
            }
            throw new IllegalArgumentException("unknown " + Databits.class.getSimpleName() + " value: " + value);
        }
    }

Frequently Asked Questions

What is the Databits type?
Databits is a type/interface in the netty codebase, defined in transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannelConfig.java.
Where is Databits defined?
Databits is defined in transport-rxtx/src/main/java/io/netty/channel/rxtx/RxtxChannelConfig.java at line 91.

Analyze Your Own Codebase

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

Try Supermodel Free