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
IOException
private ByteBuffer getBuffer(int size) throws IOException
IOException
public int readInt() throws IOException
IOException
public int getPosition()
public int getRemaining()
public com.google.protobuf.CodedInputStream getStream()
public short readShort() throws IOException
IOException
public byte readByte() throws IOException
IOException
public byte[] readBytes(int length) throws IOException
IOException
public boolean isAtEnd() throws IOException
IOException
public byte[] readBytes() throws IOException
IOException
public float readFloat() throws IOException
IOException
public String readString() throws IOException
IOException
Copyright © 2012. All Rights Reserved.