接口 ObjectInput
-
- 所有超级接口:
DataInput
- 所有已知实现类:
FastJsonObjectInput
,FstObjectInput
,Hessian2ObjectInput
,JavaObjectInput
,KryoObjectInput
,NativeJavaObjectInput
public interface ObjectInput extends DataInput
Object input.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Object
readObject()
read object.<T> T
readObject(Class<T> cls)
read object.<T> T
readObject(Class<T> cls, Type type)
read object.
-
-
-
方法详细资料
-
readObject
Object readObject() throws IOException, ClassNotFoundException
read object.- 返回:
- object.
- 抛出:
IOException
ClassNotFoundException
-
readObject
<T> T readObject(Class<T> cls) throws IOException, ClassNotFoundException
read object.- 参数:
cls
- object type.- 返回:
- object.
- 抛出:
IOException
ClassNotFoundException
-
readObject
<T> T readObject(Class<T> cls, Type type) throws IOException, ClassNotFoundException
read object.- 参数:
cls
- object type.- 返回:
- object.
- 抛出:
IOException
ClassNotFoundException
-
-