Home / Function/ doClose() — netty Function Reference

doClose() — netty Function Reference

Architecture documentation for the doClose() function in OioByteStreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3ab3bf6b_8e91_da80_3674_a2c21f6203d5["doClose()"]
  462ee44c_01dd_0264_afa1_574b02e134cf["OioByteStreamChannel"]
  3ab3bf6b_8e91_da80_3674_a2c21f6203d5 -->|defined in| 462ee44c_01dd_0264_afa1_574b02e134cf
  style 3ab3bf6b_8e91_da80_3674_a2c21f6203d5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/main/java/io/netty/channel/oio/OioByteStreamChannel.java lines 155–171

    @Override
    protected void doClose() throws Exception {
        InputStream is = this.is;
        OutputStream os = this.os;
        this.is = CLOSED_IN;
        this.os = CLOSED_OUT;

        try {
            if (is != null) {
                is.close();
            }
        } finally {
            if (os != null) {
                os.close();
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does doClose() do?
doClose() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/oio/OioByteStreamChannel.java.
Where is doClose() defined?
doClose() is defined in transport/src/main/java/io/netty/channel/oio/OioByteStreamChannel.java at line 155.

Analyze Your Own Codebase

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

Try Supermodel Free