APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans

pack-priv Class ObjectInputStreamWithLoader

Located in compilation unit of java.beans.Beans.

extends ObjectInputStream
Class Inheritance

This subclass of ObjectInputStream delegates loading of classes to an existing ClassLoader.

Field Summary

Modifier and TypeField and Description
private ClassLoader

Constructor Summary

AccessConstructor and Description
public
ObjectInputStreamWithLoader(InputStream in, ClassLoader loader)

Loader must be non-null;

Method Summary

Modifier and TypeMethod and Description
protected Class<T>
resolveClass(ObjectStreamClass classDesc)

Overrides java.io.ObjectInputStream.resolveClass.

Use the given ClassLoader rather than using the system class

Inherited from java.io.ObjectInputStream:
availableclosedefaultReadObjectenableResolveObjectgetObjectInputFilterreadreadreadBooleanreadBytereadCharreadClassDescriptorreadDoublereadFieldsreadFloatreadFullyreadFullyreadIntreadLinereadLongreadObjectreadObjectOverridereadShortreadStreamHeaderreadUnsharedreadUnsignedBytereadUnsignedShortreadUTFregisterValidationresolveObjectresolveProxyClasssetObjectInputFilterskipBytes

Field Detail

loaderback to summary
private ClassLoader loader

Constructor Detail

ObjectInputStreamWithLoaderback to summary
public ObjectInputStreamWithLoader(InputStream in, ClassLoader loader) throws IOException, StreamCorruptedException

Loader must be non-null;

Method Detail

resolveClassback to summary
protected Class<T> resolveClass(ObjectStreamClass classDesc) throws IOException, ClassNotFoundException

Overrides java.io.ObjectInputStream.resolveClass.

Use the given ClassLoader rather than using the system class

Annotations
@Override
@SuppressWarnings:rawtypes
Exceptions
IOException:

Doc from java.io.ObjectInputStream.resolveClass.

any of the usual Input/Output exceptions.

ClassNotFoundException:

Doc from java.io.ObjectInputStream.resolveClass.

if class of a serialized object cannot be found.