public class BinaryReader extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
len |
static long |
LongMaxValue |
(package private) com.google.protobuf.CodedInputStream |
reader |
| Constructor and Description |
|---|
BinaryReader(byte[] data) |
BinaryReader(InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
private ByteBuffer |
getBuffer(int size) |
int |
getPosition() |
int |
getRemaining() |
com.google.protobuf.CodedInputStream |
getStream() |
boolean |
isAtEnd() |
byte |
readByte() |
byte[] |
readBytes() |
byte[] |
readBytes(int length) |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
String |
readString() |
public static long LongMaxValue
com.google.protobuf.CodedInputStream reader
int len
public BinaryReader(InputStream stream)
public BinaryReader(byte[] data)
public long readLong()
throws IOException
IOExceptionprivate ByteBuffer getBuffer(int size) throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic int getPosition()
public int getRemaining()
public com.google.protobuf.CodedInputStream getStream()
public short readShort()
throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic byte[] readBytes(int length)
throws IOException
IOExceptionpublic boolean isAtEnd()
throws IOException
IOExceptionpublic byte[] readBytes()
throws IOException
IOExceptionpublic float readFloat()
throws IOException
IOExceptionpublic String readString() throws IOException
IOExceptionCopyright © 2012. All Rights Reserved.