public class BinaryReader extends Object implements AutoCloseable
| Constructor and Description |
|---|
BinaryReader(InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
read(byte[] buffer) |
void |
read(byte[] buffer,
int index,
int length) |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readBytes(int count) |
double |
readDouble() |
org.bouncycastle.math.ec.ECPoint |
readECPoint() |
String |
readFixedString(int length) |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
<T extends Serializable> |
readSerializable(Class<T> t) |
<T extends Serializable> |
readSerializableArray(Class<T> t) |
short |
readShort() |
byte[] |
readVarBytes() |
byte[] |
readVarBytes(int max) |
byte[] |
readVarBytes2() |
long |
readVarInt() |
long |
readVarInt(long max) |
long |
readVarInt2(long max) |
String |
readVarString() |
long |
Seek(long n) |
public BinaryReader(InputStream stream)
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void read(byte[] buffer)
throws IOException
IOExceptionpublic void read(byte[] buffer,
int index,
int length)
throws IOException
IOExceptionpublic boolean readBoolean()
throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic byte[] readBytes(int count)
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic org.bouncycastle.math.ec.ECPoint readECPoint()
throws IOException
IOExceptionpublic String readFixedString(int length) throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic <T extends Serializable> T readSerializable(Class<T> t) throws InstantiationException, IllegalAccessException, IOException
public <T extends Serializable> T[] readSerializableArray(Class<T> t) throws InstantiationException, IllegalAccessException, IOException
public short readShort()
throws IOException
IOExceptionpublic byte[] readVarBytes()
throws IOException
IOExceptionpublic byte[] readVarBytes2()
throws IOException
IOExceptionpublic byte[] readVarBytes(int max)
throws IOException
IOExceptionpublic long readVarInt()
throws IOException
IOExceptionpublic long readVarInt(long max)
throws IOException
IOExceptionpublic long readVarInt2(long max)
throws IOException
IOExceptionpublic String readVarString() throws IOException
IOExceptionpublic int available()
throws IOException
IOExceptionpublic long Seek(long n)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.