java.io
Interface ObjectInputValidation
public interface ObjectInputValidation
Objects to perform validations on other objects read with serialization
should implement this interface. An object's readObject() can
call ObjectInputStream.registerValidation() passing an object
that implements ObjectInputValidation.
- See Also:
ObjectInputStream
|
Method Summary |
void |
validateObject()
Validates an object read with serialization. |
validateObject
void validateObject()
throws InvalidObjectException
- Validates an object read with serialization.
- Throws:
InvalidObjectException - if the receiver fails to validate the object read
Please submit a feedback, bug or feature