FileDocCategorySizeDatePackage
ObjectInputStreamWithLoader.javaAPI DocJava SE 5 API1312Fri Aug 26 14:55:00 BST 2005com.sun.jmx.mbeanserver

ObjectInputStreamWithLoader

public class ObjectInputStreamWithLoader extends ObjectInputStream
This class deserializes an object in the context of a specific class loader.
since
1.5

Fields Summary
private ClassLoader
loader
Constructors Summary
public ObjectInputStreamWithLoader(InputStream in, ClassLoader theLoader)

exception
IOException Signals that an I/O exception of some sort has occurred.
exception
StreamCorruptedException The object stream is corrupt.

	super(in);
	this.loader = theLoader;
    
Methods Summary
protected java.lang.ClassresolveClass(java.io.ObjectStreamClass aClass)

      
	if (loader == null) {
	    return super.resolveClass(aClass);
	} else {
	    String name = aClass.getName();
	    // Query the class loader ...    	
	    return Class.forName(name, false, loader);
	}