public class MockIndexInput extends BufferedIndexInput
BUFFER_SIZE| Constructor and Description |
|---|
MockIndexInput(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream to further operations.
|
long |
length()
The number of bytes in the file.
|
protected void |
readInternal(byte[] dest,
int destOffset,
int len)
Expert: implements buffer refill.
|
protected void |
seekInternal(long pos)
Expert: implements seek.
|
clone, copyBytes, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSizeskipChars, toStringreadChars, readString, readStringStringMap, setModifiedUTF8StringsModeprotected void readInternal(byte[] dest,
int destOffset,
int len)
BufferedIndexInputreadInternal in class BufferedIndexInputdest - the array to read bytes intodestOffset - the offset in the array to start storing byteslen - the number of bytes to readpublic void close()
IndexInputclose in interface Closeableclose in class IndexInputprotected void seekInternal(long pos)
BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int) will occur.seekInternal in class BufferedIndexInputBufferedIndexInput.readInternal(byte[],int,int)public long length()
IndexInputlength in class IndexInput