ObjectInputStream.enableResolveObject

ObjectInputStream.enableResolveObject

Class Overview | Class Members | This Package | All Packages

Syntax
protected final boolean enableResolveObject( boolean enable ) throws SecurityException
Description
Enable the stream to allow objects read from the stream to be replaced. If the stream is a trusted class it is allowed to enable replacment. Trusted classes are those classes with a classLoader equals null.

When enabled the resolveObject method is called for every object being deserialized.

Exceptions
SecurityException The classloader of this stream object is non-null.