com.alibaba.dubbo.common.serialize
Interface ObjectInput

All Superinterfaces:
DataInput
All Known Implementing Classes:
FastJsonObjectInput, GenericObjectInput, Hessian2ObjectInput, JavaObjectInput, JsonObjectInput, NativeJavaObjectInput

public interface ObjectInput
extends DataInput

Object input.

Author:
qian.lei

Method Summary
 Object readObject()
          read object.
<T> T
readObject(Class<T> cls)
          read object.
<T> T
readObject(Class<T> cls, Type type)
          read object.
 
Methods inherited from interface com.alibaba.dubbo.common.serialize.DataInput
readBool, readByte, readBytes, readDouble, readFloat, readInt, readLong, readShort, readUTF
 

Method Detail

readObject

Object readObject()
                  throws IOException,
                         ClassNotFoundException
read object.

Returns:
object.
Throws:
IOException
ClassNotFoundException

readObject

<T> T readObject(Class<T> cls)
             throws IOException,
                    ClassNotFoundException
read object.

Parameters:
cls - object type.
Returns:
object.
Throws:
IOException
ClassNotFoundException

readObject

<T> T readObject(Class<T> cls,
                 Type type)
             throws IOException,
                    ClassNotFoundException
read object.

Parameters:
cls - object type.
Returns:
object.
Throws:
IOException
ClassNotFoundException


Copyright © 2012–2017 Alibaba. All rights reserved.