public class InputStreamAssit extends Object
| 构造器和说明 |
|---|
InputStreamAssit(InputStream is) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte |
readByte() |
byte[] |
readBytes(int length) |
int |
readInt(int length) |
long |
readLong(int length) |
String |
readStr(int length)
读字符
|
public InputStreamAssit(InputStream is)
public int readInt(int length)
throws IOException
IOExceptionpublic long readLong(int length)
throws IOException
IOExceptionpublic byte[] readBytes(int length)
throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic String readStr(int length) throws IOException
length - 一定要是偶数IOException - 读异常Copyright © 2018. All rights reserved.