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
IOException
public ByteInputStream(DataInput di, long offset) throws IOException
IOException
public final long getByteOffset()
ByteIn
getByteOffset
in interface ByteIn
public void close() throws IOException
close
in interface ByteIn
IOException
public final void skipBytes(long l) throws IOException
skipBytes
in interface ByteIn
IOException
public final int readVInt() throws IOException
readVInt
in interface ByteIn
IOException
public final long readVLong() throws IOException
readVLong
in interface ByteIn
IOException
public final int readFully(byte[] arr, int off, int len) throws IOException
readFully
in interface ByteIn
IOException
public int getVSize(long x) throws IOException
getVSize
in interface ByteIn
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow