1 15 package org.apache.tapestry.util.io; 16 17 import java.io.IOException ; 18 import java.io.InputStream ; 19 import java.io.ObjectInputStream ; 20 import java.io.ObjectStreamClass ; 21 22 import org.apache.hivemind.ClassResolver; 23 24 32 33 public class ResolvingObjectInputStream extends ObjectInputStream 34 { 35 private ClassResolver _resolver; 36 37 public ResolvingObjectInputStream(ClassResolver resolver, InputStream input) throws IOException 38 { 39 super(input); 40 41 _resolver = resolver; 42 } 43 44 47 48 protected Class resolveClass(ObjectStreamClass v) throws IOException , ClassNotFoundException 49 { 50 return _resolver.findClass(v.getName()); 51 } 52 } | Popular Tags |