CONTENTS | PREV | NEXT Java Object Serialization Specification

3.3 The ObjectInputValidation Interface

This interface allows an object to be called when a complete graph of objects has been deserialized. If the object cannot be made valid, it should throw the InvalidObjectException. Any exception that occurs during a call to validateObject will terminate the validation process, and the InvalidObjectException will be thrown.


public interface ObjectInputValidation
    public void validateObject()
        throws InvalidObjectException;

Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.