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