public class ByteInputStream extends Object implements ByteIn
BitInputStream| Modifier and Type | Field and Description |
|---|---|
protected long |
byteOffset |
protected DataInput |
di |
USUAL_EXTENSION| Modifier | Constructor and Description |
|---|---|
protected |
ByteInputStream() |
|
ByteInputStream(DataInput di) |
|
ByteInputStream(DataInput di,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getByteOffset()
Returns the byte offset of the stream.
|
int |
getVSize(long x) |
int |
readFully(byte[] arr,
int off,
int len) |
int |
readVInt() |
long |
readVLong() |
void |
skipBytes(long l) |
protected DataInput di
protected long byteOffset
protected ByteInputStream()
public ByteInputStream(DataInput di) throws IOException
IOExceptionpublic ByteInputStream(DataInput di, long offset) throws IOException
IOExceptionpublic final long getByteOffset()
ByteIngetByteOffset in interface ByteInpublic void close()
throws IOException
close in interface ByteInIOExceptionpublic final void skipBytes(long l)
throws IOException
skipBytes in interface ByteInIOExceptionpublic final int readVInt()
throws IOException
readVInt in interface ByteInIOExceptionpublic final long readVLong()
throws IOException
readVLong in interface ByteInIOExceptionpublic final int readFully(byte[] arr,
int off,
int len)
throws IOException
readFully in interface ByteInIOExceptionpublic int getVSize(long x)
throws IOException
getVSize in interface ByteInIOExceptionTerrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow