com.alibaba.dubbo.common.serialize.support.java
Class JavaObjectOutput

java.lang.Object
  extended by com.alibaba.dubbo.common.serialize.support.nativejava.NativeJavaObjectOutput
      extended by com.alibaba.dubbo.common.serialize.support.java.JavaObjectOutput
All Implemented Interfaces:
DataOutput, ObjectOutput

public class JavaObjectOutput
extends NativeJavaObjectOutput

Java Object output.

Author:
qian.lei

Constructor Summary
JavaObjectOutput(OutputStream os)
           
JavaObjectOutput(OutputStream os, boolean compact)
           
 
Method Summary
 void flushBuffer()
          Flush buffer.
 void writeObject(Object obj)
          write object.
 void writeUTF(String v)
          Write string.
 
Methods inherited from class com.alibaba.dubbo.common.serialize.support.nativejava.NativeJavaObjectOutput
writeBool, writeByte, writeBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaObjectOutput

public JavaObjectOutput(OutputStream os)
                 throws IOException
Throws:
IOException

JavaObjectOutput

public JavaObjectOutput(OutputStream os,
                        boolean compact)
                 throws IOException
Throws:
IOException
Method Detail

writeUTF

public void writeUTF(String v)
              throws IOException
Description copied from interface: DataOutput
Write string.

Specified by:
writeUTF in interface DataOutput
Overrides:
writeUTF in class NativeJavaObjectOutput
Parameters:
v - value.
Throws:
IOException

writeObject

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

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

flushBuffer

public void flushBuffer()
                 throws IOException
Description copied from interface: DataOutput
Flush buffer.

Specified by:
flushBuffer in interface DataOutput
Overrides:
flushBuffer in class NativeJavaObjectOutput
Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.