Home / Function/ close() — netty Function Reference

close() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ceaccb0a_7867_cb99_6df4_4e0aa6c735f7["close()"]
  8155f4e6_8dc5_d83e_bebd_dc3672dd75bc["ByteBufInputStream"]
  ceaccb0a_7867_cb99_6df4_4e0aa6c735f7 -->|defined in| 8155f4e6_8dc5_d83e_bebd_dc3672dd75bc
  style ceaccb0a_7867_cb99_6df4_4e0aa6c735f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buffer/src/main/java/io/netty/buffer/ByteBufInputStream.java lines 137–148

    @Override
    public void close() throws IOException {
        try {
            super.close();
        } finally {
            // The Closable interface says "If the stream is already closed then invoking this method has no effect."
            if (releaseOnClose && !closed) {
                closed = true;
                buffer.release();
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does close() do?
close() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/ByteBufInputStream.java.
Where is close() defined?
close() is defined in buffer/src/main/java/io/netty/buffer/ByteBufInputStream.java at line 137.

Analyze Your Own Codebase

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

Try Supermodel Free