|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.DataInput org.apache.lucene.store.ByteArrayDataInput
public final class ByteArrayDataInput
DataInput backed by a byte array. WARNING: This class omits all low-level checks.
Constructor Summary | |
---|---|
ByteArrayDataInput()
|
|
ByteArrayDataInput(byte[] bytes)
|
|
ByteArrayDataInput(byte[] bytes,
int offset,
int len)
|
Method Summary | |
---|---|
boolean |
eof()
|
int |
getPosition()
|
byte |
readByte()
Reads and returns a single byte. |
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset. |
int |
readInt()
Reads four bytes and returns an int. |
long |
readLong()
Reads eight bytes and returns a long. |
short |
readShort()
Reads two bytes and returns a short. |
int |
readVInt()
Reads an int stored in variable-length format. |
long |
readVLong()
Reads a long stored in variable-length format. |
void |
reset(byte[] bytes)
|
void |
reset(byte[] bytes,
int offset,
int len)
|
void |
skipBytes(int count)
|
Methods inherited from class org.apache.lucene.store.DataInput |
---|
clone, readBytes, readChars, readString, readStringStringMap, setModifiedUTF8StringsMode |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteArrayDataInput(byte[] bytes)
public ByteArrayDataInput(byte[] bytes, int offset, int len)
public ByteArrayDataInput()
Method Detail |
---|
public void reset(byte[] bytes)
public int getPosition()
public void reset(byte[] bytes, int offset, int len)
public boolean eof()
public void skipBytes(int count)
public short readShort()
DataInput
readShort
in class DataInput
DataOutput.writeByte(byte)
public int readInt()
DataInput
readInt
in class DataInput
DataOutput.writeInt(int)
public long readLong()
DataInput
readLong
in class DataInput
DataOutput.writeLong(long)
public int readVInt()
DataInput
readVInt
in class DataInput
DataOutput.writeVInt(int)
public long readVLong()
DataInput
readVLong
in class DataInput
public byte readByte()
DataInput
readByte
in class DataInput
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len)
DataInput
readBytes
in class DataInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readDataOutput.writeBytes(byte[],int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |