Home / Function/ onDataRead() — netty Function Reference

onDataRead() — netty Function Reference

Architecture documentation for the onDataRead() function in DelegatingDecompressorFrameListener.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  57403601_677c_34ae_4ad2_1ca3c636837c["onDataRead()"]
  5c336d64_231e_fffd_78be_6ce616e9bc8c["DelegatingDecompressorFrameListener"]
  57403601_677c_34ae_4ad2_1ca3c636837c -->|defined in| 5c336d64_231e_fffd_78be_6ce616e9bc8c
  3b616ed8_35a3_6678_4e2d_df48df41f0f6["Http2Decompressor()"]
  3b616ed8_35a3_6678_4e2d_df48df41f0f6 -->|calls| 57403601_677c_34ae_4ad2_1ca3c636837c
  3f8b72ec_5811_f332_169d_95c90074faa4["decompress()"]
  57403601_677c_34ae_4ad2_1ca3c636837c -->|calls| 3f8b72ec_5811_f332_169d_95c90074faa4
  style 57403601_677c_34ae_4ad2_1ca3c636837c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java lines 132–142

    @Override
    public int onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream)
            throws Http2Exception {
        final Http2Stream stream = connection.stream(streamId);
        final Http2Decompressor decompressor = decompressor(stream);
        if (decompressor == null) {
            // The decompressor may be null if no compatible encoding type was found in this stream's headers
            return listener.onDataRead(ctx, streamId, data, padding, endOfStream);
        }
        return decompressor.decompress(ctx, stream, data, padding, endOfStream);
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does onDataRead() do?
onDataRead() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java.
Where is onDataRead() defined?
onDataRead() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DelegatingDecompressorFrameListener.java at line 132.
What does onDataRead() call?
onDataRead() calls 1 function(s): decompress.
What calls onDataRead()?
onDataRead() is called by 1 function(s): Http2Decompressor.

Analyze Your Own Codebase

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

Try Supermodel Free