Interface ObjectInputValidation
public interface ObjectInputValidation
Callback interface to allow validation of objects within a graph. Allows an object to be called when a complete graph of objects has been deserialized.
- Since:
- 1.1
- See Also:
-
ObjectInputStream
,ObjectInputStream.registerValidation(java.io.ObjectInputValidation, int)
Methods
Modifier and Type | Method | Description |
---|---|---|
void | validateObject() | Validates the object. |
Methods
validateObject
void validateObject() throws InvalidObjectException
Validates the object.
- Throws:
-
InvalidObjectException
- If the object cannot validate itself.
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/ObjectInputValidation.html