decode() — netty Function Reference
Architecture documentation for the decode() function in DeflateDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD fb637de4_d05f_0309_5edc_a6707ab4cccb["decode()"] 42259036_5c94_ec21_9d9a_f9cda6ed6e54["DeflateDecoder"] fb637de4_d05f_0309_5edc_a6707ab4cccb -->|defined in| 42259036_5c94_ec21_9d9a_f9cda6ed6e54 62bf3801_45d0_4bd1_bee0_99acc0429aa3["newRsv()"] fb637de4_d05f_0309_5edc_a6707ab4cccb -->|calls| 62bf3801_45d0_4bd1_bee0_99acc0429aa3 style fb637de4_d05f_0309_5edc_a6707ab4cccb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/DeflateDecoder.java lines 81–97
@Override
protected void decode(ChannelHandlerContext ctx, WebSocketFrame msg, List<Object> out) throws Exception {
final ByteBuf decompressedContent = decompressContent(ctx, msg);
final WebSocketFrame outMsg;
if (msg instanceof TextWebSocketFrame) {
outMsg = new TextWebSocketFrame(msg.isFinalFragment(), newRsv(msg), decompressedContent);
} else if (msg instanceof BinaryWebSocketFrame) {
outMsg = new BinaryWebSocketFrame(msg.isFinalFragment(), newRsv(msg), decompressedContent);
} else if (msg instanceof ContinuationWebSocketFrame) {
outMsg = new ContinuationWebSocketFrame(msg.isFinalFragment(), newRsv(msg), decompressedContent);
} else {
throw new CodecException("unexpected frame type: " + msg.getClass().getName());
}
out.add(outMsg);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does decode() do?
decode() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/DeflateDecoder.java.
Where is decode() defined?
decode() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/DeflateDecoder.java at line 81.
What does decode() call?
decode() calls 1 function(s): newRsv.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free