The ObjectInputStreamWithLoader Class contains the following constructor:
Creates an ObjectInputStreamWithLoader object, using the specified input stream and class loader.
public ObjectInputStreamWithLoader(InputStream in, ClassLoader loader) throws IOException, StreamCorruptedException;
in | The input stream that is used to create the object. |
loader | The existing ClassLoader instance. |
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.