public class DataReader extends Reader
| 构造器和说明 |
|---|
DataReader(InputStream in)
Create a new data reader.
|
public DataReader(InputStream in)
in - the input streampublic byte readByte()
throws IOException
IOException - on failurepublic int readVarInt()
throws IOException
IOException - on failurepublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 ReaderIOExceptionpublic int read(char[] buff,
int off,
int len)
throws IOException
read 在类中 ReaderIOExceptionCopyright © 2022. All rights reserved.