com.alibaba.dubbo.common.serialize
Interface DataOutput

All Known Subinterfaces:
ObjectOutput
All Known Implementing Classes:
FastJsonObjectOutput, GenericDataOutput, GenericObjectOutput, Hessian2ObjectOutput, JavaObjectOutput, JsonObjectOutput, NativeJavaObjectOutput

public interface DataOutput

Data output.

Author:
qian.lei

Method Summary
 void flushBuffer()
          Flush buffer.
 void writeBool(boolean v)
          Write boolean.
 void writeByte(byte v)
          Write byte.
 void writeBytes(byte[] v)
          Write byte array.
 void writeBytes(byte[] v, int off, int len)
          Write byte array.
 void writeDouble(double v)
          Write double.
 void writeFloat(float v)
          Write float.
 void writeInt(int v)
          Write integer.
 void writeLong(long v)
          Write long.
 void writeShort(short v)
          Write short.
 void writeUTF(String v)
          Write string.
 

Method Detail

writeBool

void writeBool(boolean v)
               throws IOException
Write boolean.

Parameters:
v - value.
Throws:
IOException

writeByte

void writeByte(byte v)
               throws IOException
Write byte.

Parameters:
v - value.
Throws:
IOException

writeShort

void writeShort(short v)
                throws IOException
Write short.

Parameters:
v - value.
Throws:
IOException

writeInt

void writeInt(int v)
              throws IOException
Write integer.

Parameters:
v - value.
Throws:
IOException

writeLong

void writeLong(long v)
               throws IOException
Write long.

Parameters:
v - value.
Throws:
IOException

writeFloat

void writeFloat(float v)
                throws IOException
Write float.

Parameters:
v - value.
Throws:
IOException

writeDouble

void writeDouble(double v)
                 throws IOException
Write double.

Parameters:
v - value.
Throws:
IOException

writeUTF

void writeUTF(String v)
              throws IOException
Write string.

Parameters:
v - value.
Throws:
IOException

writeBytes

void writeBytes(byte[] v)
                throws IOException
Write byte array.

Parameters:
v - value.
Throws:
IOException

writeBytes

void writeBytes(byte[] v,
                int off,
                int len)
                throws IOException
Write byte array.

Parameters:
v - value.
off - offset.
len - length.
Throws:
IOException

flushBuffer

void flushBuffer()
                 throws IOException
Flush buffer.

Throws:
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.