addContent() — netty Function Reference
Architecture documentation for the addContent() function in AbstractMixedHttpData.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD db6eda06_23cf_bb53_0685_c86b82aea9a1["addContent()"] 98233652_bb29_50f3_e596_2812fd02b555["AbstractMixedHttpData"] db6eda06_23cf_bb53_0685_c86b82aea9a1 -->|defined in| 98233652_bb29_50f3_e596_2812fd02b555 21bbd55c_2ca6_858e_dd09_5ab2962d98be["checkSize()"] db6eda06_23cf_bb53_0685_c86b82aea9a1 -->|calls| 21bbd55c_2ca6_858e_dd09_5ab2962d98be 8a58a5d8_58d8_dd4d_3013_3532ba44ef92["length()"] db6eda06_23cf_bb53_0685_c86b82aea9a1 -->|calls| 8a58a5d8_58d8_dd4d_3013_3532ba44ef92 style db6eda06_23cf_bb53_0685_c86b82aea9a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMixedHttpData.java lines 77–97
@Override
public void addContent(ByteBuf buffer, boolean last) throws IOException {
if (wrapped instanceof AbstractMemoryHttpData) {
try {
checkSize(wrapped.length() + buffer.readableBytes());
if (wrapped.length() + buffer.readableBytes() > limitSize) {
D diskData = makeDiskData();
ByteBuf data = ((AbstractMemoryHttpData) wrapped).getByteBuf();
if (data != null && data.isReadable()) {
diskData.addContent(data.retain(), false);
}
wrapped.release();
wrapped = diskData;
}
} catch (IOException e) {
buffer.release();
throw e;
}
}
wrapped.addContent(buffer, last);
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does addContent() do?
addContent() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMixedHttpData.java.
Where is addContent() defined?
addContent() is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/AbstractMixedHttpData.java at line 77.
What does addContent() call?
addContent() calls 2 function(s): checkSize, length.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free