public interface ObjectInput extends DataInput
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
readObject()
read object.
|
<T> T |
readObject(Class<T> cls)
read object.
|
<T> T |
readObject(Class<T> cls,
Type type)
read object.
|
Object readObject() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException<T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
cls - object type.IOExceptionClassNotFoundException<T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
cls - object type.IOExceptionClassNotFoundExceptionCopyright © 2018. All rights reserved.