Home / Function/ finish() — netty Function Reference

finish() — netty Function Reference

Architecture documentation for the finish() function in Utf8Validator.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4f0efe15_7b6c_e8e7_147f_675582d756e8["finish()"]
  a129a485_fea7_32eb_eedd_5a9aa67bad55["Utf8Validator"]
  4f0efe15_7b6c_e8e7_147f_675582d756e8 -->|defined in| a129a485_fea7_32eb_eedd_5a9aa67bad55
  style 4f0efe15_7b6c_e8e7_147f_675582d756e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/Utf8Validator.java lines 81–89

    public void finish() {
        checking = false;
        codep = 0;
        if (state != UTF8_ACCEPT) {
            state = UTF8_ACCEPT;
            throw new CorruptedWebSocketFrameException(
                WebSocketCloseStatus.INVALID_PAYLOAD_DATA, "bytes are not UTF-8");
        }
    }

Subdomains

Frequently Asked Questions

What does finish() do?
finish() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/Utf8Validator.java.
Where is finish() defined?
finish() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/Utf8Validator.java at line 81.

Analyze Your Own Codebase

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

Try Supermodel Free