LineDecoder Class — netty Architecture
Architecture documentation for the LineDecoder class in ReplayingDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f9f1b9bb_eab7_fe8e_2d71_878feb9655ad["LineDecoder"] 5d169e27_346b_6317_7621_9ae5140d3800["ReplayingDecoderTest.java"] f9f1b9bb_eab7_fe8e_2d71_878feb9655ad -->|defined in| 5d169e27_346b_6317_7621_9ae5140d3800 cb764356_39c7_bd8e_9532_ace3c3e0ff88["LineDecoder()"] f9f1b9bb_eab7_fe8e_2d71_878feb9655ad -->|method| cb764356_39c7_bd8e_9532_ace3c3e0ff88 0bda4795_4d98_a4e1_d850_763cc1379646["decode()"] f9f1b9bb_eab7_fe8e_2d71_878feb9655ad -->|method| 0bda4795_4d98_a4e1_d850_763cc1379646
Relationship Graph
Source Code
codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java lines 67–78
private static final class LineDecoder extends ReplayingDecoder<Void> {
LineDecoder() {
}
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
ByteBuf msg = in.readBytes(in.bytesBefore((byte) '\n'));
out.add(msg);
in.skipBytes(1);
}
}
Source
Frequently Asked Questions
What is the LineDecoder class?
LineDecoder is a class in the netty codebase, defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java.
Where is LineDecoder defined?
LineDecoder is defined in codec-base/src/test/java/io/netty/handler/codec/ReplayingDecoderTest.java at line 67.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free