class SeekableInputStream extends java.lang.Object implements IDataInput
Modifier and Type | Class and Description |
---|---|
private static class |
SeekableInputStream.CompressedIntsDataInput |
Modifier and Type | Field and Description |
---|---|
private byte[] |
buffer |
private int |
pos |
private static byte |
STRING_ENCODING_CHAR_ARRAY |
(package private) static byte |
STRING_ENCODING_CONSTANT_POOL |
private static byte |
STRING_ENCODING_EMPTY_STRING |
private static byte |
STRING_ENCODING_LATIN1_BYTE_ARRAY |
private static byte |
STRING_ENCODING_NULL |
private static byte |
STRING_ENCODING_UTF8_BYTE_ARRAY |
Constructor and Description |
---|
SeekableInputStream(byte[] buffer) |
Modifier and Type | Method and Description |
---|---|
(package private) static SeekableInputStream |
build(byte[] data,
boolean compressedInts) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] dst,
int off,
int len) |
int |
readInt() |
long |
readLong() |
java.lang.String |
readRawString(byte encoding) |
short |
readShort() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedShort() |
void |
seek(long pos) |
void |
skipString() |
private static final byte STRING_ENCODING_NULL
private static final byte STRING_ENCODING_EMPTY_STRING
static final byte STRING_ENCODING_CONSTANT_POOL
private static final byte STRING_ENCODING_UTF8_BYTE_ARRAY
private static final byte STRING_ENCODING_CHAR_ARRAY
private static final byte STRING_ENCODING_LATIN1_BYTE_ARRAY
private final byte[] buffer
private int pos
public void seek(long pos) throws java.io.IOException
java.io.IOException
public void readFully(byte[] b)
public void readFully(byte[] dst, int off, int len)
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface IDataInput
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface IDataInput
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface IDataInput
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface IDataInput
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface IDataInput
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface IDataInput
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface IDataInput
java.io.IOException
public long readUnsignedInt() throws java.io.IOException
readUnsignedInt
in interface IDataInput
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface IDataInput
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface IDataInput
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface IDataInput
java.io.IOException
public java.lang.String readRawString(byte encoding) throws java.io.IOException
readRawString
in interface IDataInput
java.io.IOException
public void skipString() throws java.io.IOException
skipString
in interface IDataInput
java.io.IOException
static SeekableInputStream build(byte[] data, boolean compressedInts)