com.alibaba.dubbo.common.serialize.support.dubbo
Class GenericObjectOutput

java.lang.Object
  extended by com.alibaba.dubbo.common.serialize.support.dubbo.GenericDataOutput
      extended by com.alibaba.dubbo.common.serialize.support.dubbo.GenericObjectOutput
All Implemented Interfaces:
DataOutput, ObjectOutput, GenericDataFlags

public class GenericObjectOutput
extends GenericDataOutput
implements ObjectOutput

Generic Object Output.

Author:
qian.lei

Field Summary
 
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
 
Constructor Summary
GenericObjectOutput(OutputStream out)
           
GenericObjectOutput(OutputStream out, ClassDescriptorMapper mapper)
           
GenericObjectOutput(OutputStream out, int buffSize)
           
GenericObjectOutput(OutputStream out, int buffSize, ClassDescriptorMapper mapper)
           
GenericObjectOutput(OutputStream out, int buffSize, ClassDescriptorMapper mapper, boolean isAllowNonSerializable)
           
 
Method Summary
 void addRef(Object obj)
           
 int getRef(Object obj)
           
 void writeObject(Object obj)
          write object.
 
Methods inherited from class com.alibaba.dubbo.common.serialize.support.dubbo.GenericDataOutput
flushBuffer, writeBool, writeByte, writeBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUInt, writeUTF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alibaba.dubbo.common.serialize.DataOutput
flushBuffer, writeBool, writeByte, writeBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

GenericObjectOutput

public GenericObjectOutput(OutputStream out)

GenericObjectOutput

public GenericObjectOutput(OutputStream out,
                           ClassDescriptorMapper mapper)

GenericObjectOutput

public GenericObjectOutput(OutputStream out,
                           int buffSize)

GenericObjectOutput

public GenericObjectOutput(OutputStream out,
                           int buffSize,
                           ClassDescriptorMapper mapper)

GenericObjectOutput

public GenericObjectOutput(OutputStream out,
                           int buffSize,
                           ClassDescriptorMapper mapper,
                           boolean isAllowNonSerializable)
Method Detail

writeObject

public void writeObject(Object obj)
                 throws IOException
Description copied from interface: ObjectOutput
write object.

Specified by:
writeObject in interface ObjectOutput
Parameters:
obj - object.
Throws:
IOException

addRef

public void addRef(Object obj)

getRef

public int getRef(Object obj)


Copyright © 2012–2017 Alibaba. All rights reserved.