接口 DataInput
-
- 所有已知子接口:
ObjectInput
- 所有已知实现类:
FastJsonObjectInput
,FstObjectInput
,Hessian2ObjectInput
,JavaObjectInput
,KryoObjectInput
,NativeJavaObjectInput
public interface DataInput
Data input.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
readBool
boolean readBool() throws IOException
Read boolean.- 返回:
- boolean.
- 抛出:
IOException
-
readByte
byte readByte() throws IOException
Read byte.- 返回:
- byte value.
- 抛出:
IOException
-
readShort
short readShort() throws IOException
Read short integer.- 返回:
- short.
- 抛出:
IOException
-
readInt
int readInt() throws IOException
Read integer.- 返回:
- integer.
- 抛出:
IOException
-
readLong
long readLong() throws IOException
Read long.- 返回:
- long.
- 抛出:
IOException
-
readFloat
float readFloat() throws IOException
Read float.- 返回:
- float.
- 抛出:
IOException
-
readDouble
double readDouble() throws IOException
Read double.- 返回:
- double.
- 抛出:
IOException
-
readUTF
String readUTF() throws IOException
Read UTF-8 string.- 返回:
- string.
- 抛出:
IOException
-
readBytes
byte[] readBytes() throws IOException
Read byte array.- 返回:
- byte array.
- 抛出:
IOException
-
-