Home / Function/ setValue() — netty Function Reference

setValue() — netty Function Reference

Architecture documentation for the setValue() function in MemoryAttribute.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f9ecafe7_69e1_a10f_785f_98dfe871e9dd["setValue()"]
  6c399a89_7753_f796_2abf_5c169160e6c8["MemoryAttribute"]
  f9ecafe7_69e1_a10f_785f_98dfe871e9dd -->|defined in| 6c399a89_7753_f796_2abf_5c169160e6c8
  037bad93_47a2_70d3_43d6_42c9b936659b["MemoryAttribute()"]
  037bad93_47a2_70d3_43d6_42c9b936659b -->|calls| f9ecafe7_69e1_a10f_785f_98dfe871e9dd
  style f9ecafe7_69e1_a10f_785f_98dfe871e9dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/MemoryAttribute.java lines 68–78

    @Override
    public void setValue(String value) throws IOException {
        ObjectUtil.checkNotNull(value, "value");
        byte [] bytes = value.getBytes(getCharset());
        checkSize(bytes.length);
        ByteBuf buffer = wrappedBuffer(bytes);
        if (definedSize > 0) {
            definedSize = buffer.readableBytes();
        }
        setContent(buffer);
    }

Subdomains

Called By

Frequently Asked Questions

What does setValue() do?
setValue() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/MemoryAttribute.java.
Where is setValue() defined?
setValue() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/MemoryAttribute.java at line 68.
What calls setValue()?
setValue() is called by 1 function(s): MemoryAttribute.

Analyze Your Own Codebase

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

Try Supermodel Free