KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > io > ObjectInputValidation


1 /*
2  * @(#)ObjectInputValidation.java 1.18 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.io;
9
10 /**
11  * Callback interface to allow validation of objects within a graph.
12  * Allows an object to be called when a complete graph of objects has
13  * been deserialized.
14  *
15  * @author unascribed
16  * @version 1.18, 12/19/03
17  * @see ObjectInputStream
18  * @see ObjectInputStream#registerValidation(java.io.ObjectInputValidation, int)
19  * @since JDK1.1
20  */

21 public interface ObjectInputValidation {
22     /**
23      * Validates the object.
24      *
25      * @exception InvalidObjectException If the object cannot validate itself.
26      */

27     public void validateObject() throws InvalidObjectException JavaDoc;
28 }
29
Popular Tags