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, setBufferSize
skipChars, toString
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode
protected void readInternal(byte[] dest, int destOffset, int len)
BufferedIndexInput
readInternal
in class BufferedIndexInput
dest
- the array to read bytes intodestOffset
- the offset in the array to start storing byteslen
- the number of bytes to readpublic void close()
IndexInput
close
in interface Closeable
close
in class IndexInput
protected void seekInternal(long pos)
BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
will occur.seekInternal
in class BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
public long length()
IndexInput
length
in class IndexInput