Home / Function/ close() — netty Function Reference

close() — netty Function Reference

Architecture documentation for the close() function in ByteBufOutputStream.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  53b08c34_676f_1765_b197_a10140de71e0["close()"]
  b0f015ed_c496_fa06_0ae3_0f347b86e7ca["ByteBufOutputStream"]
  53b08c34_676f_1765_b197_a10140de71e0 -->|defined in| b0f015ed_c496_fa06_0ae3_0f347b86e7ca
  fc008271_aedb_7c3a_9d98_eb5935e3c720["writeUTF()"]
  fc008271_aedb_7c3a_9d98_eb5935e3c720 -->|calls| 53b08c34_676f_1765_b197_a10140de71e0
  style 53b08c34_676f_1765_b197_a10140de71e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/ByteBufOutputStream.java lines 170–187

    @Override
    public void close() throws IOException {
        if (closed) {
            return;
        }
        closed = true;

        try {
            super.close();
        } finally {
            if (utf8out != null) {
                utf8out.close();
            }
            if (releaseOnClose) {
                buffer.release();
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does close() do?
close() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/ByteBufOutputStream.java.
Where is close() defined?
close() is defined in buffer/src/main/java/io/netty/buffer/ByteBufOutputStream.java at line 170.
What calls close()?
close() is called by 1 function(s): writeUTF.

Analyze Your Own Codebase

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

Try Supermodel Free