mx4j.loading

Class ClassLoaderObjectInputStream


public class ClassLoaderObjectInputStream
extends ObjectInputStream

ObjectInputStream that can read serialized java Objects using a supplied classloader to find the object's classes.

Version:
$Revision: 1.5 $

Constructor Summary

ClassLoaderObjectInputStream(InputStream stream, ClassLoader classLoader)
Creates a new ClassLoaderObjectInputStream

Method Summary

protected Class
resolveClass(ObjectStreamClass osc)
protected Class
resolveProxyClass(String[] interfaces)

Constructor Details

ClassLoaderObjectInputStream

public ClassLoaderObjectInputStream(InputStream stream,
                                    ClassLoader classLoader)
            throws IOException,
                   StreamCorruptedException
Creates a new ClassLoaderObjectInputStream

Parameters:
stream - The decorated stream
classLoader - The ClassLoader used to load classes

Method Details

resolveClass

protected Class resolveClass(ObjectStreamClass osc)
            throws IOException,
                   ClassNotFoundException


resolveProxyClass

protected Class resolveProxyClass(String[] interfaces)
            throws IOException,
                   ClassNotFoundException


Copyright © 2001-2003 MX4J Team. All Rights Reserved.