com.alibaba.dubbo.common.serialize.support.java
Class JavaObjectOutput
java.lang.Object
com.alibaba.dubbo.common.serialize.support.nativejava.NativeJavaObjectOutput
com.alibaba.dubbo.common.serialize.support.java.JavaObjectOutput
- All Implemented Interfaces:
- DataOutput, ObjectOutput
public class JavaObjectOutput
- extends NativeJavaObjectOutput
Java Object output.
- Author:
- qian.lei
JavaObjectOutput
public JavaObjectOutput(OutputStream os)
throws IOException
- Throws:
IOException
JavaObjectOutput
public JavaObjectOutput(OutputStream os,
boolean compact)
throws IOException
- Throws:
IOException
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.