public interface Externalizable extends Serializable
ObjectOutputStream
,
ObjectInputStream
,
ObjectOutput
,
ObjectInput
,
Serializable
Modifier and Type | Method and Description |
---|---|
void |
readExternal(ObjectInput in)
该对象实现了readexternal方法调用的数据输入方法的基本类型和readObject对象还原其内容,字符串和数组。
|
void |
writeExternal(ObjectOutput out)
该对象实现writeExternal方法通过调用数据的方法为其原始值或调用对象的objectoutput writeObject方法的字符串,将其内容,和阵列。
|
void writeExternal(ObjectOutput out) throws IOException
out
流-写的对象
IOException
-包括任何I/O异常可能发生
void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
in
-流读取数据以恢复对象
IOException
如果I/O错误发生
ClassNotFoundException
恢复无法找到类。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.