CompactedObjectInputStream.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:dubbocloud 作者:
@Override
protected ObjectStreamClass readClassDescriptor() throws IOException,ClassNotFoundException
{
    int type = read();
    if( type < 0 )
        throw new EOFException();
    switch( type )
    {
        case 0:
            return super.readClassDescriptor();
        case 1:
            Class<?> clazz = loadClass(readUTF());
            return ObjectStreamClass.lookup(clazz);
        default:
            throw new StreamCorruptedException("Unexpected class descriptor type: " + type);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号