writeClassDescriptor() — netty Function Reference
Architecture documentation for the writeClassDescriptor() function in CompactObjectOutputStream.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bb1086a9_15a6_9ef1_e47b_18e3e9aadbbb["writeClassDescriptor()"] 9b1ce4b2_b3d4_6b99_4a4c_35ccf86d3351["CompactObjectOutputStream"] bb1086a9_15a6_9ef1_e47b_18e3e9aadbbb -->|defined in| 9b1ce4b2_b3d4_6b99_4a4c_35ccf86d3351 style bb1086a9_15a6_9ef1_e47b_18e3e9aadbbb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-base/src/main/java/io/netty/handler/codec/serialization/CompactObjectOutputStream.java lines 37–48
@Override
protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {
Class<?> clazz = desc.forClass();
if (clazz.isPrimitive() || clazz.isArray() || clazz.isInterface() ||
desc.getSerialVersionUID() == 0) {
write(TYPE_FAT_DESCRIPTOR);
super.writeClassDescriptor(desc);
} else {
write(TYPE_THIN_DESCRIPTOR);
writeUTF(desc.getName());
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does writeClassDescriptor() do?
writeClassDescriptor() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/serialization/CompactObjectOutputStream.java.
Where is writeClassDescriptor() defined?
writeClassDescriptor() is defined in codec-base/src/main/java/io/netty/handler/codec/serialization/CompactObjectOutputStream.java at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free