Object() — netty Function Reference
Architecture documentation for the Object() function in MarshallingDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e748c351_00f4_f8f5_cf22_90d161ab17ed["Object()"] 41b6ecfe_a3e0_b9ab_1c48_efc8411af770["MarshallingDecoder"] e748c351_00f4_f8f5_cf22_90d161ab17ed -->|defined in| 41b6ecfe_a3e0_b9ab_1c48_efc8411af770 style e748c351_00f4_f8f5_cf22_90d161ab17ed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/MarshallingDecoder.java lines 61–81
@Override
protected Object decode(ChannelHandlerContext ctx, ByteBuf in) throws Exception {
ByteBuf frame = (ByteBuf) super.decode(ctx, in);
if (frame == null) {
return null;
}
Unmarshaller unmarshaller = provider.getUnmarshaller(ctx);
ByteInput input = new ChannelBufferByteInput(frame);
try {
unmarshaller.start(input);
Object obj = unmarshaller.readObject();
unmarshaller.finish();
return obj;
} finally {
// Call close in a finally block as the ReplayingDecoder will throw an Error if not enough bytes are
// readable. This helps to be sure that we do not leak resource
unmarshaller.close();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Object() do?
Object() is a function in the netty codebase, defined in codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/MarshallingDecoder.java.
Where is Object() defined?
Object() is defined in codec-marshalling/src/main/java/io/netty/handler/codec/marshalling/MarshallingDecoder.java at line 61.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free