public class DataReader
extends java.io.Reader
| Constructor and Description |
|---|
DataReader(java.io.InputStream in)
Create a new data reader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read(char[] buff,
int off,
int len) |
byte |
readByte()
Read a byte.
|
int |
readVarInt()
Read a variable size integer.
|
public DataReader(java.io.InputStream in)
in - the input streampublic byte readByte()
throws java.io.IOException
java.io.IOException - on failurepublic int readVarInt()
throws java.io.IOException
java.io.IOException - on failurepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic int read(char[] buff,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException