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.IOExceptionpublic void readFully(byte[] b)
public void readFully(byte[] dst,
int off,
int len)
public boolean readBoolean()
throws java.io.IOException
readBoolean in interface IDataInputjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
readByte in interface IDataInputjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
readUnsignedByte in interface IDataInputjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
readShort in interface IDataInputjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in interface IDataInputjava.io.IOExceptionpublic char readChar()
throws java.io.IOException
readChar in interface IDataInputjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
readInt in interface IDataInputjava.io.IOExceptionpublic long readUnsignedInt()
throws java.io.IOException
readUnsignedInt in interface IDataInputjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
readLong in interface IDataInputjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
readFloat in interface IDataInputjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
readDouble in interface IDataInputjava.io.IOExceptionpublic java.lang.String readRawString(byte encoding)
throws java.io.IOException
readRawString in interface IDataInputjava.io.IOExceptionpublic void skipString()
throws java.io.IOException
skipString in interface IDataInputjava.io.IOExceptionstatic SeekableInputStream build(byte[] data, boolean compressedInts)