ThrowingChunkedInput Class — netty Architecture
Architecture documentation for the ThrowingChunkedInput class in ChunkedWriteHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 040544fa_19dc_7db1_e2aa_c30300e8c1ea["ThrowingChunkedInput"] ef80ca88_d081_0f32_4668_0c2eea409d9e["ChunkedWriteHandlerTest.java"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|defined in| ef80ca88_d081_0f32_4668_0c2eea409d9e 4a14cdb7_e258_429b_0e3f_db7b42d9be3e["ThrowingChunkedInput()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 4a14cdb7_e258_429b_0e3f_db7b42d9be3e 9868e6d9_223c_5ab4_8019_7000479136c4["isEndOfInput()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 9868e6d9_223c_5ab4_8019_7000479136c4 08c92a94_2d5f_1e52_610b_f1d9d0eae0c2["close()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 08c92a94_2d5f_1e52_610b_f1d9d0eae0c2 4d600725_7ab1_425d_da3a_7e7eda65ad5c["ByteBuf()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 4d600725_7ab1_425d_da3a_7e7eda65ad5c 95d75d44_83fa_0be3_8ad7_e4e8e6f2346e["length()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 95d75d44_83fa_0be3_8ad7_e4e8e6f2346e 93f0835d_b760_6879_8b25_3444f5508288["progress()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 93f0835d_b760_6879_8b25_3444f5508288 5278355a_35f1_0e65_4712_d8b7544b2be0["isClosed()"] 040544fa_19dc_7db1_e2aa_c30300e8c1ea -->|method| 5278355a_35f1_0e65_4712_d8b7544b2be0
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/stream/ChunkedWriteHandlerTest.java lines 786–828
private static final class ThrowingChunkedInput implements ChunkedInput<ByteBuf> {
private final Exception error;
private volatile boolean closed;
ThrowingChunkedInput(Exception error) {
this.error = error;
}
@Override
public boolean isEndOfInput() {
return false;
}
@Override
public void close() {
closed = true;
}
@Override
public ByteBuf readChunk(ChannelHandlerContext ctx) throws Exception {
return readChunk(ctx.alloc());
}
@Override
public ByteBuf readChunk(ByteBufAllocator allocator) throws Exception {
throw error;
}
@Override
public long length() {
return -1;
}
@Override
public long progress() {
return -1;
}
boolean isClosed() {
return closed;
}
}
Source
Frequently Asked Questions
What is the ThrowingChunkedInput class?
ThrowingChunkedInput is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/stream/ChunkedWriteHandlerTest.java.
Where is ThrowingChunkedInput defined?
ThrowingChunkedInput is defined in handler/src/test/java/io/netty/handler/stream/ChunkedWriteHandlerTest.java at line 786.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free