ObjectOutputStream.enableReplaceObject
Class Overview | Class Members | This Package | All Packages
Syntax
protected final boolean enableReplaceObject( boolean enable ) throws SecurityException
Description
Enable the stream to do replacement of objects in the stream. If the stream is a trusted class it is allowed to enable replacement. Trusted classes are those classes with a classLoader equals null.
When enabled the replaceObject method is called for every object being serialized.
Exceptions
SecurityException The classloader of this stream object is non-null.