public abstract class CompactReader extends Object
Constructor and Description |
---|
CompactReader() |
Modifier and Type | Method and Description |
---|---|
static long |
decodeZigZag(long n) |
abstract int |
read(byte[] buffer,
int off,
int len) |
abstract int |
readByte() |
void |
readFully(byte[] buffer) |
int |
readInt() |
long |
readLong() |
String |
readString() |
long |
readVariableLengthSignedInteger() |
long |
readVariableLengthUnsignedInteger() |
abstract void |
skip(long len) |
public abstract int readByte() throws IOException
IOException
public abstract int read(byte[] buffer, int off, int len) throws IOException
IOException
public abstract void skip(long len) throws IOException
IOException
public long readVariableLengthUnsignedInteger() throws IOException
IOException
public long readVariableLengthSignedInteger() throws IOException
IOException
public static long decodeZigZag(long n)
public String readString() throws IOException
IOException
public void readFully(byte[] buffer) throws IOException
IOException
public int readInt() throws IOException
IOException
public long readLong() throws IOException
IOException