Closeable, AutoCloseable, Cloneablepublic class MockIndexInput extends BufferedIndexInput
BUFFER_SIZE| Constructor | Description |
|---|---|
MockIndexInput(byte[] bytes) |
| Modifier and Type | Method | 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, setBufferSizereadChars, readString, readStringStringMap, setModifiedUTF8StringsModeskipChars, toStringprotected 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 AutoCloseableclose 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 IndexInputCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.