public interface DataInput
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
boolean readBool()
throws IOException
IOExceptionbyte readByte()
throws IOException
IOExceptionshort readShort()
throws IOException
IOExceptionint readInt()
throws IOException
IOExceptionlong readLong()
throws IOException
IOExceptionfloat readFloat()
throws IOException
IOExceptiondouble readDouble()
throws IOException
IOExceptionString readUTF() throws IOException
IOExceptionbyte[] readBytes()
throws IOException
IOExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.