public final class BinaryDecoder extends Object
| Constructor and Description |
|---|
BinaryDecoder(InputStream input) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
readBytes()
Read a byte sequence.
|
int |
readInt()
Read one int from the input.
|
long |
readLong()
Read one long int from the input.
|
public BinaryDecoder(InputStream input)
input - Stream to read from.public int readInt()
throws IOException
IOException - If there is IO error.EOFException - If end of file reached.public long readLong()
throws IOException
IOException - If there is IO error.EOFException - If end of file reached.public byte[] readBytes()
throws IOException
IOException - If there is IO error.EOFException - If end of file reached.Copyright © 2017 The Apache Software Foundation. All rights reserved.