Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید




A class implements this interface and
defines the validateObject(
)
method in order to validate itself when
it and all the objects it depends on have been completely
deserialized from an ObjectInputStream. The
validateObject( ) method is only invoked, however,
if the object is passed to
ObjectInputStream.registerValidation(
)
; this must be done from the
readObject( )
method of the object. Note that if an object is deserialized as part
of a larger object graph, its validateObject( )
method is not invoked until the entire graph is read, and the
original call to ObjectInputStream.readObject( )
is about to return. validateObject( ) should throw
an
InvalidObjectException

if the object fails validation. This stops object serialization, and
the original call to ObjectInputStream.readObject(
)
terminates with the
InvalidObjectException exception.

public interface 

ObjectInputValidation {
// Public Instance Methods
void

validateObject ( ) throws InvalidObjectException;
}


Passed To


ObjectInputStream.registerValidation( )


/ 1191