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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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



This interface defines the methods
that must be implemented by an object that wants complete control
over the way it is
serialized. The
writeExternal( )
and readExternal(
)
methods should be implemented to write and read object
data in some arbitrary format, using the methods of the
DataOutput and DataInput
interfaces. Externalizable objects must serialize
their own fields and are also responsible for serializing the fields
of their superclasses. Most objects do not need to define a custom
output format and can use the Serializable
interface instead of Externalizable for
serialization.


Figure 9-13. java.io.Externalizable

public interface 

Externalizable extends Serializable {
// Public Instance Methods
void

readExternal (ObjectInput

in ) throws IOException, ClassNotFoundException;
void

writeExternal (ObjectOutput

out ) throws IOException;
}



/ 1191