ChannelBufferByteOutput Class — netty Architecture
Architecture documentation for the ChannelBufferByteOutput class in ChannelBufferByteOutput.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c2d179bc_c17e_f69c_13ed_59c75723b65d["ChannelBufferByteOutput"] ed515877_e7e7_97a9_e134_8376fd10a2e1["ChannelBufferByteOutput.java"] c2d179bc_c17e_f69c_13ed_59c75723b65d -->|defined in| ed515877_e7e7_97a9_e134_8376fd10a2e1 2b908565_2d71_fb6b_bbfc_c60560492c52["ChannelBufferByteOutput()"] c2d179bc_c17e_f69c_13ed_59c75723b65d -->|method| 2b908565_2d71_fb6b_bbfc_c60560492c52 b5c313c7_3320_6834_8268_c26157d31c59["close()"] c2d179bc_c17e_f69c_13ed_59c75723b65d -->|method| b5c313c7_3320_6834_8268_c26157d31c59 b9a885df_761c_8d6d_7b73_f11897a599ac["flush()"] c2d179bc_c17e_f69c_13ed_59c75723b65d -->|method| b9a885df_761c_8d6d_7b73_f11897a599ac 9875613c_936c_2922_e1b6_0d5d8a417150["write()"] c2d179bc_c17e_f69c_13ed_59c75723b65d -->|method| 9875613c_936c_2922_e1b6_0d5d8a417150 6ccfdb46_1a1e_f6d1_b118_e6df10ab15aa["ByteBuf()"] c2d179bc_c17e_f69c_13ed_59c75723b65d -->|method| 6ccfdb46_1a1e_f6d1_b118_e6df10ab15aa
Relationship Graph
Source Code
codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/ChannelBufferByteOutput.java lines 28–71
class ChannelBufferByteOutput implements ByteOutput {
private final ByteBuf buffer;
/**
* Create a new instance which use the given {@link ByteBuf}
*/
ChannelBufferByteOutput(ByteBuf buffer) {
this.buffer = buffer;
}
@Override
public void close() throws IOException {
// Nothing to do
}
@Override
public void flush() throws IOException {
// nothing to do
}
@Override
public void write(int b) throws IOException {
buffer.writeByte(b);
}
@Override
public void write(byte[] bytes) throws IOException {
buffer.writeBytes(bytes);
}
@Override
public void write(byte[] bytes, int srcIndex, int length) throws IOException {
buffer.writeBytes(bytes, srcIndex, length);
}
/**
* Return the {@link ByteBuf} which contains the written content
*
*/
ByteBuf getBuffer() {
return buffer;
}
}
Defined In
Source
Frequently Asked Questions
What is the ChannelBufferByteOutput class?
ChannelBufferByteOutput is a class in the netty codebase, defined in codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/ChannelBufferByteOutput.java.
Where is ChannelBufferByteOutput defined?
ChannelBufferByteOutput is defined in codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/ChannelBufferByteOutput.java at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free