{
clazz = classLoader.load( className );
}
catch( ScriptingClassNotFoundException e )
{
throw new SerializationException(
Constants.ERR_SCL_CLASS_NOT_FOUND,
e
);
}
}
properties.put( name, clazz );
}
}
else
{
properties = null;
}
final int methodCount = in.readInt();
if( methodCount > 0 )
{
methods = new Hashtable( methodCount );
for( int i = 0; i < methodCount; i++ )
{
final String name = in.readString();
final Method method = new MethodImpl( this );
method.deserialize( in );
methods.put( name, method );
}
}
else
{
methods = null;
}
final int ancestorCount = in.readInt();
if( ancestorCount > 0 )
{
ancestors = new Vector( ancestorCount );
for( int i = 0; i < ancestorCount; i++ )
{
final String name = in.readString();
ScriptingClass clazz;
try
{
clazz = classLoader.load( name );
}
catch( ScriptingClassNotFoundException e )
{
throw new SerializationException(
Constants.ERR_SCL_CLASS_NOT_FOUND,
e
);
}
ancestors.addElement( clazz );