Microsoft SDK for Java

ObjectInputStreamWithLoader Class Constructors

The ObjectInputStreamWithLoader Class contains the following constructor:

ObjectInputStreamWithLoader(InputStream in, ClassLoader loader)

Creates an ObjectInputStreamWithLoader object, using the specified input stream and class loader.

Syntax

public ObjectInputStreamWithLoader(InputStream in, ClassLoader loader) throws IOException, StreamCorruptedException;

Parameters

in The input stream that is used to create the object.
loader The existing ClassLoader instance.

Exceptions

IllegalArgumentException if loader is null.

IOException if an error is encountered while using the underlying stream.

StreamCorruptedException if the version or magic number is incorrect.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.