com.alibaba.dubbo.common.serialize.support.dubbo
Class GenericObjectInput
java.lang.Object
com.alibaba.dubbo.common.serialize.support.dubbo.GenericDataInput
com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectInput
- All Implemented Interfaces:
- DataInput, ObjectInput, GenericDataFlags
public class GenericObjectInput
- extends GenericDataInput
- implements ObjectInput
Generic Object Input.
- Author:
- qian.lei
Fields inherited from interface com.alibaba.dubbo.common.serialize.support.dubbo.GenericDataFlags |
OBJECT, OBJECT_BYTES, OBJECT_DESC, OBJECT_DESC_ID, OBJECT_DUMMY, OBJECT_MAP, OBJECT_NULL, OBJECT_REF, OBJECT_STREAM, OBJECT_VALUE, OBJECT_VALUES, VARINT, VARINT_0, VARINT_1, VARINT_10, VARINT_11, VARINT_12, VARINT_13, VARINT_14, VARINT_15, VARINT_16, VARINT_17, VARINT_18, VARINT_19, VARINT_1A, VARINT_1B, VARINT_1C, VARINT_1D, VARINT_1E, VARINT_1F, VARINT_2, VARINT_3, VARINT_4, VARINT_5, VARINT_6, VARINT_7, VARINT_8, VARINT_9, VARINT_A, VARINT_B, VARINT_C, VARINT_D, VARINT_E, VARINT_F, VARINT_N1, VARINT_N2, VARINT_N3, VARINT_N4, VARINT_N5, VARINT_N6, VARINT_N7, VARINT_N8, VARINT_N9, VARINT_NA, VARINT_NB, VARINT_NC, VARINT_ND, VARINT_NE, VARINT_NF, VARINT16, VARINT24, VARINT32, VARINT40, VARINT48, VARINT56, VARINT64, VARINT8 |
GenericObjectInput
public GenericObjectInput(InputStream is)
GenericObjectInput
public GenericObjectInput(InputStream is,
ClassDescriptorMapper mapper)
GenericObjectInput
public GenericObjectInput(InputStream is,
int buffSize)
GenericObjectInput
public GenericObjectInput(InputStream is,
int buffSize,
ClassDescriptorMapper mapper)
readObject
public Object readObject()
throws IOException
- Description copied from interface:
ObjectInput
- read object.
- Specified by:
readObject
in interface ObjectInput
- Returns:
- object.
- Throws:
IOException
readObject
public <T> T readObject(Class<T> cls)
throws IOException,
ClassNotFoundException
- Description copied from interface:
ObjectInput
- read object.
- Specified by:
readObject
in interface ObjectInput
- Parameters:
cls
- object type.
- Returns:
- object.
- Throws:
IOException
ClassNotFoundException
readObject
public <T> T readObject(Class<T> cls,
Type type)
throws IOException,
ClassNotFoundException
- Description copied from interface:
ObjectInput
- read object.
- Specified by:
readObject
in interface ObjectInput
- Parameters:
cls
- object type.
- Returns:
- object.
- Throws:
IOException
ClassNotFoundException
addRef
public void addRef(Object obj)
getRef
public Object getRef(int index)
throws IOException
- Throws:
IOException
skipAny
public void skipAny()
throws IOException
- Throws:
IOException
Copyright © 2012–2017 Alibaba. All rights reserved.