com.alibaba.dubbo.common.serialize
Interface DataInput

All Known Subinterfaces:
ObjectInput
All Known Implementing Classes:
FastJsonObjectInput, GenericDataInput, GenericObjectInput, Hessian2ObjectInput, JavaObjectInput, JsonObjectInput, NativeJavaObjectInput

public interface DataInput

Data input.

Author:
qian.lei

Method Summary
 boolean readBool()
          Read boolean.
 byte readByte()
          Read byte.
 byte[] readBytes()
          Read byte array.
 double readDouble()
          Read double.
 float readFloat()
          Read float.
 int readInt()
          Read integer.
 long readLong()
          Read long.
 short readShort()
          Read short integer.
 String readUTF()
          Read UTF-8 string.
 

Method Detail

readBool

boolean readBool()
                 throws IOException
Read boolean.

Returns:
boolean.
Throws:
IOException.
IOException

readByte

byte readByte()
              throws IOException
Read byte.

Returns:
byte value.
Throws:
IOException.
IOException

readShort

short readShort()
                throws IOException
Read short integer.

Returns:
short.
Throws:
IOException.
IOException

readInt

int readInt()
            throws IOException
Read integer.

Returns:
integer.
Throws:
IOException.
IOException

readLong

long readLong()
              throws IOException
Read long.

Returns:
long.
Throws:
IOException.
IOException

readFloat

float readFloat()
                throws IOException
Read float.

Returns:
float.
Throws:
IOException.
IOException

readDouble

double readDouble()
                  throws IOException
Read double.

Returns:
double.
Throws:
IOException.
IOException

readUTF

String readUTF()
               throws IOException
Read UTF-8 string.

Returns:
string.
Throws:
IOException.
IOException

readBytes

byte[] readBytes()
                 throws IOException
Read byte array.

Returns:
byte array.
Throws:
IOException.
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.