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
IOException.IOExceptionbyte readByte()
throws IOException
IOException.IOExceptionshort readShort()
throws IOException
IOException.IOExceptionint readInt()
throws IOException
IOException.IOExceptionlong readLong()
throws IOException
IOException.IOExceptionfloat readFloat()
throws IOException
IOException.IOExceptiondouble readDouble()
throws IOException
IOException.IOExceptionString readUTF() throws IOException
IOException.IOExceptionbyte[] readBytes()
throws IOException
IOException.IOExceptionCopyright © 2018. All rights reserved.