Home / Function/ String() — netty Function Reference

String() — netty Function Reference

Architecture documentation for the String() function in Http2FrameLogger.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4c61c8e5_b57b_0587_b73c_cbe4342a44cf["String()"]
  b05a86d6_042a_ba9f_e399_5cb7b15de65a["Http2FrameLogger"]
  4c61c8e5_b57b_0587_b73c_cbe4342a44cf -->|defined in| b05a86d6_042a_ba9f_e399_5cb7b15de65a
  style 4c61c8e5_b57b_0587_b73c_cbe4342a44cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameLogger.java lines 164–173

    private String toString(ByteBuf buf) {
        if (level == InternalLogLevel.TRACE || buf.readableBytes() <= BUFFER_LENGTH_THRESHOLD) {
            // Log the entire buffer.
            return ByteBufUtil.hexDump(buf);
        }

        // Otherwise just log the first 64 bytes.
        int length = Math.min(buf.readableBytes(), BUFFER_LENGTH_THRESHOLD);
        return ByteBufUtil.hexDump(buf, buf.readerIndex(), length) + "...";
    }

Domain

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameLogger.java.
Where is String() defined?
String() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameLogger.java at line 164.

Analyze Your Own Codebase

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

Try Supermodel Free