Stay organized with collections
Save and categorize content based on your preferences.
public
interface
ObjectInputValidation
java.io.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.
Summary
Public methods
validateObject
public abstract void validateObject ()
Validates the object.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ObjectInputValidation\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nObjectInputValidation\n=====================\n\n\n`\npublic\n\n\ninterface\nObjectInputValidation\n`\n\n\n`\n\n\n`\n\n|-------------------------------|\n| java.io.ObjectInputValidation |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface to allow validation of objects within a graph.\nAllows an object to be called when a complete graph of objects has\nbeen deserialized. \n**See also:**\n\n- [ObjectInputStream](/reference/java/io/ObjectInputStream)\n- [ObjectInputStream.registerValidation(java.io.ObjectInputValidation, int)](/reference/java/io/ObjectInputStream#registerValidation(java.io.ObjectInputValidation,%20int))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[validateObject](/reference/java/io/ObjectInputValidation#validateObject())`() ` Validates the object. |\n\nPublic methods\n--------------\n\n### validateObject\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void validateObject ()\n```\n\nValidates the object.\n\n\u003cbr /\u003e\n\n| Throws ||\n|---------------------------------------------------------------------|---------------------------------------|\n| [InvalidObjectException](/reference/java/io/InvalidObjectException) | If the object cannot validate itself. |"]]