1 31 package org.objectweb.proactive.core.mop; 32 33 import java.io.IOException ; 34 import java.io.InputStream ; 35 import java.io.ObjectInputStream ; 36 import java.io.ObjectStreamClass ; 37 38 39 public class PAObjectInputStream extends ObjectInputStream { 40 41 public PAObjectInputStream(InputStream in) throws IOException { 42 super(in); 43 } 44 45 public PAObjectInputStream() throws IOException , SecurityException { 46 super(); 47 } 48 49 protected Class resolveClass(ObjectStreamClass desc) 50 throws IOException , ClassNotFoundException { 51 try { 52 super.resolveClass(desc); 53 } catch (ClassNotFoundException e) { 54 return MOP.loadClass(desc.getName()); 59 } 60 return super.resolveClass(desc); 61 } 62 63 } 64 | Popular Tags |