1. /*
  2. * @(#)ObjectInputValidation.java 1.15 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.io;
  11. /**
  12. * Callback interface to allow validation of objects within a graph.
  13. * Allows an object to be called when a complete graph of objects has
  14. * been deserialized.
  15. *
  16. * @author unascribed
  17. * @version 1.15, 02/02/00
  18. * @see ObjectInputStream
  19. * @see ObjectInputStream#registerValidation(java.io.ObjectInputValidation, int)
  20. * @since JDK1.1
  21. */
  22. public interface ObjectInputValidation {
  23. /**
  24. * Validates the object.
  25. *
  26. * @exception InvalidObjectException If the object cannot validate itself.
  27. */
  28. public void validateObject() throws InvalidObjectException;
  29. }