@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);
}
}
CompactedObjectInputStream.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:dubbocloud
作者:
评论列表
文章目录