60 |
*/ |
*/ |
61 |
public interface Externalizable extends Serializable |
public interface Externalizable extends Serializable |
62 |
{ |
{ |
63 |
static final long serialVersionUID = -282491828744381764L; |
long serialVersionUID = -282491828744381764L; |
64 |
|
|
65 |
/** |
/** |
66 |
* This method restores an object's state by reading in the instance data |
* This method restores an object's state by reading in the instance data |
86 |
* restored cannot be found |
* restored cannot be found |
87 |
* @exception IOException If any other error occurs |
* @exception IOException If any other error occurs |
88 |
*/ |
*/ |
89 |
public abstract void readExternal(ObjectInput in) |
void readExternal(ObjectInput in) |
90 |
throws ClassNotFoundException, IOException; |
throws ClassNotFoundException, IOException; |
91 |
|
|
92 |
/** |
/** |
105 |
* |
* |
106 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
107 |
*/ |
*/ |
108 |
public abstract void writeExternal(ObjectOutput out) throws IOException; |
void writeExternal(ObjectOutput out) throws IOException; |
109 |
|
} |
|
} // interface Externalizable |
|
|
|
|