Home / Function/ String() — netty Function Reference

String() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpRequestEncoderTest.java lines 139–155

    private static String getWrittenString(EmbeddedChannel channel) {
        ByteBuf written = Unpooled.buffer();

        for (;;) {
            ByteBuf buffer = channel.readOutbound();
            if (buffer == null) {
                break;
            }
            written.writeBytes(buffer);
            buffer.release();
        }

        String writtenString = written.toString(CharsetUtil.US_ASCII);
        written.release();

        return writtenString;
    }

Domain

Subdomains

Frequently Asked Questions

What does String() do?
String() is a function in the netty codebase, defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpRequestEncoderTest.java.
Where is String() defined?
String() is defined in codec-smtp/src/test/java/io/netty/handler/codec/smtp/SmtpRequestEncoderTest.java at line 139.

Analyze Your Own Codebase

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

Try Supermodel Free